mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-30 22:44:35 +00:00
11 lines
360 B
Plaintext
11 lines
360 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
if [ "$(dunstctl is-paused)" = "false" ]; then
|
||
|
notify-send "Notifications" "Pausing notifications..." -h string:x-canonical-private-synchronous:notif-pause
|
||
|
sleep 2
|
||
|
dunstctl set-paused true
|
||
|
else
|
||
|
dunstctl set-paused false
|
||
|
notify-send "Notifications" "Notifications enabled" -h string:x-canonical-private-synchronous:notif-pause
|
||
|
fi
|