Dotfiles/polybar/scripts/dunst-snooze.sh
2023-02-03 19:12:16 +01:00

14 lines
No EOL
281 B
Bash
Executable file

#!/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