aboutsummaryrefslogtreecommitdiff
path: root/blocks.h
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-09-21 15:34:35 -0400
committerLuke Smith <luke@lukesmith.xyz>2019-09-21 15:34:35 -0400
commitc142cf34e9898efa46c4f3233fcfcf740df13b2a (patch)
tree70a28b6eafac82ffe5adef6faf3ac6f62e8eff17 /blocks.h
parent690475e1e52be120e49f053982249be5ccc59177 (diff)
downloaddwmblocks-c142cf34e9898efa46c4f3233fcfcf740df13b2a.tar.gz
dwmblocks-c142cf34e9898efa46c4f3233fcfcf740df13b2a.tar.bz2
dwmblocks-c142cf34e9898efa46c4f3233fcfcf740df13b2a.zip
luke init
Diffstat (limited to 'blocks.h')
-rw-r--r--blocks.h30
1 files changed, 18 insertions, 12 deletions
diff --git a/blocks.h b/blocks.h
index 31e98af..d04c467 100644
--- a/blocks.h
+++ b/blocks.h
@@ -1,20 +1,26 @@
//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 ~/.pacupdate | sed /📦0/d", 0, 9},
-
- {"🧠", "free -h | awk '/^Mem/ { print $3\"/\"$2 }' | sed s/i//g", 30, 0},
+ {"", "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},
+};
- {"", "~/bin/statusbar/volume", 0, 10},
+//sets delimeter between status commands. NULL character ('\0') means no delimeter.
+static char delim = ' ';
- {"☀", "xbacklight | sed 's/\\..*//'", 0, 11},
-
- {"", "~/bin/statusbar/battery", 5, 0},
+ /* {"🔊 ", "x=\"$(amixer get Master)\"; echo \"$x\" | grep -o \"\\[off\\]\" || echo \"$x\" | grep -o [0-9]*%", 0, 10}, */
+ /* {"", "sed /📦0/d ~/.pacupdate", 0, 9}, */
- {"🌡", "sensors | awk '/^temp1:/{print $2}'", 5, 0},
+ /* {"🧠 ", "free -h | awk '/^Mem/ { print $3\"/\"$2 }' | sed s/i//g", 30, 0}, */
- {"", "~/bin/statusbar/clock", 5, 0},
-};
+ /* {"💻 ", "sed 's/000$/°C/' /sys/class/thermal/thermal_zone0/temp", 30, 21}, */
+
+ //{"🎼 ", "mpc status | sed \"/^volume:/d;/\\[playing\\]/d;s/^\\[paused\\].*/⏸/\"", 0, 11},
+
+ //{"☀ ", "xbacklight | sed 's/\\..*//'", 0, 11},
+
+ /* {"🌡 ", "sensors | awk '/^temp1:/{print $2}'", 5, 0}, */
-//sets delimeter between status commands. NULL character ('\0') means no delimeter.
-static char delim = '|';