How y9felix/bar works
bar is a compact Wayland status-bar application. Its runtime configures a layer-shell surface, gathers system and PulseAudio status, and renders indicators, text, and a clock; autohide and corner placement shape how it is presented. The README documents the product capabilities, while the single C source combines the implementation rather than exposing separate modules. Relationships for unsampled portions are omitted; README-backed capability links are documented rather than inferred from module structure.
Main entry points: bar.c Status refresh · config.def.h Bar configuration
Components 10
Bar runtime
- Bar configuration
config.def.h - Event loop
bar.c
Status inputs
- Status refresh
bar.c - Power and backlight
- PulseAudio
- Clock
Wayland display
- Bar renderer
bar.c - Layer surface
bar.c - Wayland compositor
Other components
- User
Connections 9
- User → Event loop: starts
README.md - Bar configuration → Event loop: configures
README.md - Event loop → Status refresh: refreshes
bar.c - Status refresh → Power and backlight: reads status
README.md - Status refresh → PulseAudio: reads volume
README.md - Status refresh → Clock: updates time
bar.c - Status refresh → Bar renderer: supplies status
bar.c - Bar renderer → Layer surface: commits buffer
bar.c - Layer surface → Wayland compositor: uses protocol
README.md