summaryrefslogtreecommitdiff
path: root/.local/bin/dwmbar/dwmb-eselect
blob: 2544ab4edc7f03d6e464422940667f8f1dcfafd8 (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