repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

Trim Ironbar notification polling

0f694b2c273356ee63eab42e4c6850951e923fe8

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (1)

ironbar/scripts/mako-status.sh

Modified
1 1 #!/bin/sh
3 -count=$(makoctl list -j 2>/dev/null | jq 'length' 2>/dev/null)
3 +count=$(makoctl list 2>/dev/null | grep -c '^Notification ')
4 4 case "$count" in
5 - ''|0) printf '󰂚\n' ;;
5 + 0) printf '󰂚\n' ;;
6 6 *) printf '󰂞 %s\n' "$count" ;;
7 7 esac