Dotfiles/polybar/scripts/dunst-snooze.sh

14 lines
281 B
Bash
Raw Normal View History

2023-02-03 18:12:16 +00:00
#!/bin/sh
case "$1" in
--toggle)
dunstctl set-paused toggle
;;
*)
if [ "$(dunstctl is-paused)" = "true" ]; then
echo "%{F$2} $(dunstctl count waiting)"
else
echo "%{F$1} $(dunstctl count displayed)"
fi
;;
esac