My fork of avd (yet another dwm status bar ecosystem)
Go to file
Narvin Singh 2355282d88 Fix: Change module function names to be unique
The code for each module is wrapped in a function so the module
can be parameterized, and so its variables can be scoped to the
function. However, the function names must be unique, otherwise when
the modules are sourced, functions will overwrite functions with the
same name in previously sourced modules.
2020-12-28 11:48:33 -05:00
module Fix: Change module function names to be unique 2020-12-28 11:48:33 -05:00
README.md Chore: Add xrsbd and xrsbs level 2 headings 2020-12-27 14:32:18 -05:00
status-bar Refactor: Change from using xprop to xsetroot 2020-12-25 21:22:42 -05:00
xrsbs Feat: Scheduler 2020-12-27 13:31:56 -05:00

xrsb

xrsb (X Root Window Status Bar) can be used with window managers, such as dwm, that display a status bar based on the name property of the X root window. The application consists of a daemon (xrsbd) and a scheduler (xrsbs), and is meant to be efficient and precise, only updating specific parts of the status bar when necessary.

xrsbd

The xrsbd daemon maintains and updates the status bar (root window name). It traps the SIGUSR1 signal that tells it that it's time to update. A client, such as the scheduler, can create action files in a designated action directory to specify which parts of the status bar the daemon should update. When the daemon receives the signal, it looks in the action directory for any actions that is understands, updates the status bar, and removes those files.

xrsbs

The xrsbs scheduler creates action files in the action directory, then sends the SIGUSR1 signal to a daemon. The scheduler can send one signal to perform multiple actions by creating multiple action files, and can create the action file(s) and send the signal immediately, after some delay, or repeatedly at some interval.