Statusbar for window managers that use the root windows WM_TITLE.
Inspired by:
Configuration is done via editing the src/blocks.rs file and compiling with cargo build.
The toplevel Cargo.toml includes all available blocks by default in the dependencies list, but ones not in use can be removed.
date- Current date/time with configurable formatfilesystem- Contents of a file
- Number of files in a directory
sh- Output ofsh -c "code"system-resources- Resource utilization of the system- CPU Usage
volume- Volume of default audio device (Currently PulseAudio only)keyboard-indicators- Symbols to indicate caps/scroll lock
Some initial support for statuscmd compatability has been implemented, but since I don't actually use that patch myself it's not very fleshed out. Blocks can be given a signal handler, which will get called when statusbar recieved a signal for that blocks index in the blocks array. You can embded the required raw byte in the template string \x01, \x02, etc.
- Add a new lib crate to the components directory.
- Add crate to the workspace list in components/Cargo.toml.
- Add the crate to the dependencies list in Cargo.toml.
- Implement the new components. Follow the example of one of the others in components. Most of them are very simple.