someblocks

modular status bar for dwlb
git clone https://git.awy.one/someblocks
Log | Files | Refs | README | LICENSE

blocks.def.h (1736B) - View raw


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
//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*/ /*Left Click*/
	{"",		  "stmusic",	         0,			              11,           "BLOCK_BUTTON=1 stmusic",  "BLOCK_BUTTON=3 stmusic", "BLOCK_BUTTON=2 stmusic", "BLOCK_BUTTON=4 stmusic", "BLOCK_BUTTON=5 stmusic"},
	{"",		  "sb-pacpackages",	   0,			              8,            "BLOCK_BUTTON=1 sb-pacpackages",  "BLOCK_BUTTON=3 sb-pacpackages", "BLOCK_BUTTON=2 sb-pacpackages", NULL, NULL},
	{"",		  "sb-news",	         0,			              6,            "BLOCK_BUTTON=1 sb-news",  "BLOCK_BUTTON=3 sb-news", "BLOCK_BUTTON=2 sb-news", NULL, NULL},
	{"",		  "sttorrent",	       10,			            7,            "BLOCK_BUTTON=1 sttorrent",  "BLOCK_BUTTON=3 sttorrent", "BLOCK_BUTTON=2 sttorrent", NULL, NULL},
	{"",		  "stmemory",	         5,			              14,           "BLOCK_BUTTON=1 stmemory",   "BLOCK_BUTTON=3 stmemory",  "BLOCK_BUTTON=2 stmemory", NULL, NULL},
	{"",		  "stmail",	           180,			            12,           "BLOCK_BUTTON=1 stmail",     "BLOCK_BUTTON=3 stmail",    "BLOCK_BUTTON=2 stmail",   NULL, NULL},
	{"",		  "sb-volume",	       0,			              10,           "BLOCK_BUTTON=1 sb-volume",    "BLOCK_BUTTON=3 sb-volume",   "BLOCK_BUTTON=2 sb-volume",  "BLOCK_BUTTON=4 sb-volume", "BLOCK_BUTTON=5 sb-volume"},
	{"",		  "stclock",	         20,			            1,            "BLOCK_BUTTON=1 stclock",    "BLOCK_BUTTON=3 stclock",   "BLOCK_BUTTON=2 stclock",  NULL, NULL},
};



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