use general scripts for statusbar

This commit is contained in:
Luke Smith
2020-02-08 09:43:28 -05:00
parent a6c82c2148
commit 6bd2e845be
2 changed files with 13 additions and 9 deletions

View File

@@ -2,15 +2,15 @@
static const Block blocks[] = {
/*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/
/* {"", "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 */
/* {"", "music", 0, 11}, */
{"", "pacpackages", 0, 8},
{"", "torrent", 20, 7},
{"", "news", 0, 6},
{"", "weather", 18000, 5},
{"", "mailbox", 180, 12},
{"", "volume", 0, 10},
{"", "battery", 5, 0},
{"", "clock", 60, 0},
};
//sets delimeter between status commands. NULL character ('\0') means no delimeter.