How boatette/aion works
aion is a Zig/wlroots Wayland compositor whose main workflow is starting a session, managing Wayland clients across tags and monitors, and arranging windows in a horizontally scrolling column layout. The README also documents configuration, input bindings and gestures, a status bar, launcher/session menus, and locking. The tree identifies the implementation files, but only src/c.h was excerpted; dashed, unverified links indicate likely runtime relationships rather than inspected calls.
Main entry points: Server.zig Wayland server · main.zig Compositor entry · Client.zig Client management · input.zig Input handling
Components 16
Compositor runtime
- Compositor entry
src/main.zig - Wayland server
src/Server.zig - Compiled config
src/config.zig
Windows and layout
- Client management
src/Client.zig - Monitor management
src/Monitor.zig - Layer surfaces
src/LayerSurface.zig - Scrolling layout
src/scroll.zig
Input and actions
- Input handling
src/input.zig - Window actions
src/actions.zig
Compositor services
- Status bar
src/Bar.zig - Launcher and menus
src/menu.zig - Session lock
src/lock.zig
Other components
- User
- wlroots
- Wayland clients
- Status command
Connections 15
- User → Compositor entry: starts session
README.md - Compositor entry → Wayland server: starts compositor
- Wayland server → wlroots: uses
README.md - Wayland clients → Wayland server: connects to
- Wayland server → Client management: manages clients
- Wayland server → Monitor management: manages monitors
- Wayland server → Layer surfaces: handles surfaces
- Client management → Scrolling layout: uses layout
README.md - User → Input handling: provides input
- Input handling → Window actions: dispatches actions
- Compositor entry → Compiled config: uses settings
README.md - Wayland server → Status bar: provides bar
README.md - Status bar → Status command: reads status
README.md - Window actions → Launcher and menus: opens menus
README.md - Wayland server → Session lock: supports locking