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

icon=""

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

# case "$total" in
# 0) echo "" ;;
# *) printf '{"text":"%s %s/%s", "class":"block" }' "$icon" "$unread" "$total" ;;
# esac
#
printf '{"text":"%s %s/%s", "class":"block" }' "$icon" "$unread" "$total"