From a6c82c2148384296df1be6069f885c63e77ef111 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sat, 1 Feb 2020 12:43:28 -0500 Subject: simplification for emojis --- blocks.h | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'blocks.h') diff --git a/blocks.h b/blocks.h index a0c04f7..49eeee7 100644 --- a/blocks.h +++ b/blocks.h @@ -1,12 +1,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*/ - {"", "cat /tmp/recordingicon", 0, 9}, - {"📬 ", "find ~/.local/share/mail/*/INBOX/new -type f | wc -l", 0, 13}, - {"🔊 ", "amixer get Master | grep -o \"\\(\\[off\\]\\|[0-9]*%\\)\"", 0, 10}, - {"🔋 ", "sed \"s/$/%/\" /sys/class/power_supply/BAT?/capacity", 5, 12}, - {"🕗 ", "date '+%Y %b %d (%a) %I:%M%p'", 60, 0}, + /* {"", "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 */ }; //sets delimeter between status commands. NULL character ('\0') means no delimeter. -static char delim = ' '; +static char delim = '|'; -- cgit v1.2.3-13-gbd6f From 6bd2e845be1f4efe089ec3f4d0fea82c93a515bb Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sat, 8 Feb 2020 09:43:28 -0500 Subject: use general scripts for statusbar --- blocks.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'blocks.h') diff --git a/blocks.h b/blocks.h index 49eeee7..d02e53f 100644 --- a/blocks.h +++ b/blocks.h @@ -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. -- cgit v1.2.3-13-gbd6f From b9e29ebe901e41e777aaa4be00b808ca655697cf Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 1 Mar 2020 07:01:56 -0500 Subject: blocks.h moved to config.h --- blocks.h | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 blocks.h (limited to 'blocks.h') diff --git a/blocks.h b/blocks.h deleted file mode 100644 index d02e53f..0000000 --- a/blocks.h +++ /dev/null @@ -1,17 +0,0 @@ -//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*/ - /* {"", "cat /tmp/recordingicon", 0, 9}, */ - /* {"", "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. -static char delim = '|'; -- cgit v1.2.3-13-gbd6f