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