summaryrefslogtreecommitdiff
path: root/.local/bin/dwmbar/dwmb-eselect
blob: b2e860007cd3aabfe6d902f04847a724517c9918 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

icon=""

total="$(eselect news count all)"
unread="$(eselect news count new)"

case "$total" in
0) echo "" ;;
*) echo "$icon $unread/$total" ;;
esac