How instantos/instantwm works
Main Components Structure
a) Window Management Core
• Components from instantwm.c and instantwm.h
• To layout management (layouts.c, layouts.h)
b) Drawing System
• This as a supporting module
• Components from drw.c and drw.h
• Connection to the theming system
c) Layout Engine
• This as a major subsystem
• Layouts.c and layouts.h
• Interaction with window management core
d) Utility Layer
• At the bottom as a foundation
• Util.c and util.h
• Connections to other components
Key Interactions
• Window Management → Drawing System (window rendering)
• Window Management → Layout Engine (window positioning)
• Theme System → Drawing System (appearance configuration)
• Control Interface → Window Management (instantwmctrl.sh integration)
Special Features Layer
• Overlay System
• Animation Engine
• Tag Management
• Multi-monitor Support
• Start Menu Interface
Configuration System
How these components interact:
• config.def.h
• Theme files (themes/*.theme)
• config.mk
• Blue: Core window management
• Green: Drawing and visual components
• Orange: Layout management
• Purple: Configuration and theming
• Gray: Utility functions
Core Components (Center)
[Window Management Core]
• ↑
[Layout Engine] ← → [Drawing System]
• ↑ ↑
[Utility Layer] → [Theme System]
Feature Modules (Right Side)
[Overlay System]
[Animation Engine] → [Window Management Core]
[Tag Management]
[Multi-monitor]
Configuration (Left Side)
[config.def.h]
[Theme Files] → [Theme System]
[config.mk]