aboutsummaryrefslogtreecommitdiff
path: root/blocks.def.h
blob: c513d7eac560de45cbbf8b5e29c5598830b23bf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Modify this file to change what commands output to your statusbar, and recompile using the make command.
static const Block blocks[] = {
	/*Icon*/	/*Command*/		/*Update Interval*/	/*Update Signal*/
	{"", "xkblayout-state print %s", 0, 4},
	{"", "[ $(pulsemixer --get-mute) = 1 ] && echo 🔇 && exit || echo  $(pulsemixer --get-volume | cut -f 1 -d ' ')%", 0, 2},
	{" ", "wpa_cli status | grep ^ssid= | sed 's/ssid=//'", 15, 0},
	{" ", "whoami", 0, 0},
	{"  ", "echo $(cat /sys/class/power_supply/BAT0/capacity)%", 30, 0},
	{"  ", "export ONLINE=$(cat /sys/class/power_supply/ADP1/online) && [ $ONLINE -eq 0 ] && echo ﮤ", 30, 0},
	{" ", "date '+%a, %d.%m.%Y  %H:%M:%S'", 1, 0},
};

//sets delimeter between status commands. NULL character ('\0') means no delimeter.
static char delim[] = "   ";
static unsigned int delimLen = 5;