dotfiles/.config/polybar/scripts/dunst-snooze.sh
2024-01-29 08:31:23 -06:00

15 lines
229 B
Bash

#!/bin/sh
case "$1" in
--toggle)
dunstctl set-paused toggle
;;
*)
if [ "$(dunstctl is-paused)" = "true" ]; then
echo "#1"
else
echo "#2"
fi
;;
esac