dwm-status
DWM status service which dynamically updates when needed. Heavily inspired by i3status-rust.
Example status bar:
L 30% / MUTE / ▼ 25% (01:05) / 2018-03-16 21:25
If an error occures, notifications via libnotify are sent.
Requirements
cargo
, rustc
and lib{dbus,gdk-pixbuf,glib,notify,x11}-dev
are required to build the binary.
Build and run
Or install globally to ~/.cargo/bin
:
Nix support
Build:
And run:
Configuration
The config-file
contains one feature
per line, e.g.:
audio
battery
time
Features
Audio
Note: alsa-utils
are required.
Shows either MUTE
or the current volume like S 52%
. Listens on alsactl monitor
for changes.
Backlight
Shows backlight value like L 23%
and watches /sys/class/backlight
for changes.
Battery
Note: The upower
daemon has to be running for receiving DBus messages.
Shows following information:
status | example | notes |
---|---|---|
charging | ▲ 10% (01:23) |
In parentheses time to full |
discharging | ▼ 50% (02:03) |
In parentheses time to empty |
battery count | example | notes |
---|---|---|
0 | NO BATT |
|
1 | ▼ 50% (02:03) |
|
2 | ▼ 50% (02:03) · 50% |
Batteries ordered alphabetically by name |
Watches UPower DBus signals for added or removed batteries and changes of battery states.
If discharging and the capacity of the fullest battery is under specific values, warning notifications with urgency normal or critical are sent.
capacity | urgency |
---|---|
2% | critical |
5% | critical |
10% | critical |
15% | normal |
20% | normal |
CPU Load
Shows CPU load taken from /proc/loadavg
in format 0.55 0.61 0.42
and refreshes every 20 seconds.
Time
Shows time in format YYYY-MM-DD HH:MM
and refreshes every minute.