mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-06-29 04:00:42 +00:00
Move to swaync (from dunst)
This commit is contained in:
parent
df82f47ccb
commit
c8d1e94c0f
7 changed files with 712 additions and 7 deletions
10
home/.local/bin/scripts/gui/toggle-notifications
Executable file
10
home/.local/bin/scripts/gui/toggle-notifications
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue