Files
dotfile/home/.config/bspwm/widgets/tray/scripts/dunst.sh
T
2023-05-25 01:33:35 +05:45

27 lines
500 B
Bash
Executable File

#!/usr/bin/env bash
STATUS=$(dunstctl is-paused)
toggle() {
if [ $STATUS == "false" ]; then
dunstctl set-paused true
else
dunstctl set-paused false
notify-send --urgency=normal "Notifications are live." "Notifications have been turned on, no more silence!"
fi
}
status() {
if [ $STATUS == "false" ]; then
echo ""
else
echo ""
fi
}
if [[ $1 == "--toggle" ]]; then
toggle
elif [[ $1 == "--status" ]]; then
status
fi