dwmstatus
dwm’s status bar text can be set using the xsetroot -name $status
notion. This very well leads to big scripts, which pull in unneeded
dependencies. One solution for this is to write everything in C. C is much
more efficient. This page will give you a barebone dwmstatus project and
show examples on how to extend it to your needs.
The Barebone
git clone git://git.suckless.org/dwmstatus
This is a barebone project you can use for changing it to your needs.
User submitted versions
Please add your own version of dwmstatus here.
- profil-dwmstatus-1.0.c - cpufreq, battery percent and date/time
- p1c0-dwmstatus-volume.c - volume percentage & bar display
- suspend-statusbar.c - loadavg, wifi, battery and date. If battery goes below threshold - run suspend command
Helper functions
If you have simple C functions for gathering system information, please add them here as file or as code example.
- Support for ACPI battery status Linux
- Reading out a temperature from /sys
- Reading eth0 up-, and downspeed from /proc/net
- Counting number of mails in a Maildir/new
- Get disk usage and execute some check at different moments : Because you don’t want to check new mails every second
- Detecting Man-In-The-Middle
- Show line per line the content of a file : See tmpinfo function. It prints line after line the content of /tmp/dwmbuf.
- Simple function to have uptime
Questions
If you have any questions regarding dwmstatus, contact Christoph Lohmann (20h@r-36.net).