2019-03-24 23:51:45 +00:00
|
|
|
//Modify this file to change what commands output to your statusbar, and recompile using the make command.
|
2019-03-24 22:31:05 +00:00
|
|
|
static const Block blocks[] = {
|
2019-03-30 03:10:46 +00:00
|
|
|
/*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/
|
2020-02-01 17:43:28 +00:00
|
|
|
/* {"", "cat /tmp/recordingicon", 0, 9}, */
|
|
|
|
/* {"", "mpc status | grep -v ^volume | head -n 1", 0, 11}, */
|
|
|
|
{"mail:", "find ~/.local/share/mail/*/INBOX/new -type f | wc -l", 0, 12},
|
|
|
|
{"vol:", "amixer get Master | tail -n1 | sed -r 's/.*\\[(.*)%\\].*/\\1/'", 0, 10},
|
|
|
|
{"bat:", "sed \"s/$/%/\" /sys/class/power_supply/BAT?/capacity", 5, 0},
|
|
|
|
{"", "date '+%b %d (%a) %I:%M%p'", 60, 0},
|
|
|
|
/* weather: 5 */
|
|
|
|
/* news: 6 */
|
|
|
|
/* torrent: 7 */
|
|
|
|
/* packages: 8 */
|
2019-09-21 19:34:35 +00:00
|
|
|
};
|
2019-03-30 03:10:46 +00:00
|
|
|
|
2019-09-21 19:34:35 +00:00
|
|
|
//sets delimeter between status commands. NULL character ('\0') means no delimeter.
|
2020-02-01 17:43:28 +00:00
|
|
|
static char delim = '|';
|