summaryrefslogtreecommitdiff
path: root/.local/bin/dwmbar/dwmb-eselect
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2023-12-28 13:38:46 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2023-12-28 13:38:46 -0500
commitac067ff89e7318d3ab65626d9a2701f09ef959f3 (patch)
treee4350a41aa2aa1d3ef12563b5281d2806cddd795 /.local/bin/dwmbar/dwmb-eselect
parentd4775d06c87a284b8933634c205c9af11121e4d6 (diff)
volumectl uses pipewire and dwmblocks eselect news
Diffstat (limited to '.local/bin/dwmbar/dwmb-eselect')
-rwxr-xr-x.local/bin/dwmbar/dwmb-eselect11
1 files changed, 11 insertions, 0 deletions
diff --git a/.local/bin/dwmbar/dwmb-eselect b/.local/bin/dwmbar/dwmb-eselect
new file mode 100755
index 0000000..2544ab4
--- /dev/null
+++ b/.local/bin/dwmbar/dwmb-eselect
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+icon=" "
+
+total="$(eselect news count all)"
+unread="$(eselect news count new)"
+
+case "$total" in
+0) echo "" ;;
+*) echo "$icon $unread/$total" ;;
+esac