sbar is modular, asynchronous and configurable (yaml config file) bar for dwm written in rust.
note: sbar is still in early development
By cargo
cargo install sbar
sbar [-c configpath] [-v] [h]
create $HOME/.config/sbar/config.yml
list:
- name: exec
params:
- echo
- "Welcome sheep"
- name: memory
params:
- LMAO
- name: time
sep: " | "
delay: 1000
built-in modules: - exec - execute a command and return the result - memory - formatted memory - battery - monitor battery (take battery index as param, default is 0) - time - formatted time - echo - return all params joined together as string - sep - return seperator (defined in config.yaml)
params is list of string
take params[0] as program name and params[1..len] as args