Files
suckless/dwmblocks/blocks.def.h
T
2026-05-26 09:00:30 +02:00

15 lines
656 B
C

//Modify this file to change what commands output to your statusbar, and recompile using the make command.
#define MODULE_ROOT "$HOME/.config/suckless/dwmblocks/modules/"
static const Block blocks[] = {
/*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/
{"", "mpc status | head -1", 0, 1},
{"net:", "nmcli n c", 10, 0},
{"b:", "cat /sys/class/power_supply/BAT0/capacity", 60, 0},
{"v:", MODULE_ROOT "status-volume", 0, 2},
{"", "date +'%a %b %d, %H:%M'", 60, 0},
};
//sets delimiter between status commands. NULL character ('\0') means no delimiter.
static char delim[] = " | ";
static unsigned int delimLen = 5;