Expand description
Desktop Panel (Taskbar) with Layer-Shell Integration
Renders a taskbar at the bottom of the screen showing workspace indicators, open windows, system clock with date, and system tray area.
§Layer-Shell Protocol
The panel uses the wlr-layer-shell protocol to anchor itself to the bottom edge of the output. Layer-shell surfaces are rendered above normal windows and below overlay surfaces (e.g., notifications).
Layer ordering (bottom to top):
- Background: desktop wallpaper
- Bottom: desktop widgets
- Top: panels, docks (this panel)
- Overlay: lock screen, notifications
The panel requests exclusive zone equal to its height, so the compositor reserves that space and prevents normal windows from overlapping the panel area.
Layer-shell types, enum variants, and panel configuration fields define the complete panel API. Unused items are retained for protocol completeness.
Structs§
- Layer
Surface Config - Layer-shell surface configuration.
- Panel
- Desktop panel state.
Enums§
- Layer
Shell Anchor - Layer-shell anchor edges (bitmask).
- Layer
Shell Layer - Layer-shell layer (from wlr-layer-shell protocol).
Constants§
- PANEL_
HEIGHT - Panel height in pixels.
Functions§
- init
- Initialize the desktop panel.
- with_
panel - Execute a function with the panel.