diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2023-12-28 13:38:46 -0500 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2023-12-28 13:38:46 -0500 |
commit | ac067ff89e7318d3ab65626d9a2701f09ef959f3 (patch) | |
tree | e4350a41aa2aa1d3ef12563b5281d2806cddd795 /.local/bin/dwmbar | |
parent | d4775d06c87a284b8933634c205c9af11121e4d6 (diff) |
volumectl uses pipewire and dwmblocks eselect news
Diffstat (limited to '.local/bin/dwmbar')
-rwxr-xr-x | .local/bin/dwmbar/dwmb-eselect | 11 |
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 |