aboutsummaryrefslogtreecommitdiff
path: root/blocks.def.h
blob: 46acf3425c898c460512847a5772cb589d24786e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//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*/
	{" ", "mpc current", 3, 1},
	{" ", "task _get rc.context", 60, 0},
	{" ", "task scriptable rc.verbose: +ACTIVE | head -n1", 15, 0},
	{"", "xkb-switch", 0, 4},
	{"", "~/.local/share/i3blocks-modules/volume -np", 0, 2},
	{"", "~/.local/share/i3blocks-modules/backlight -np", 0, 3},
	{" ", "~/.local/share/i3blocks-modules/wifi -np -f '{ssid}'", 15, 0},
	{"  ", "echo $(cat /sys/class/power_supply/BAT0/capacity)%", 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;