mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-06-29 04:00:42 +00:00
Add shortcut for toggling dunst idle mode
This commit is contained in:
parent
1e534616c7
commit
8b8d24c4b1
2 changed files with 11 additions and 0 deletions
10
home/.local/bin/scripts/gui/hyprland/toggle-notifications
Executable file
10
home/.local/bin/scripts/gui/hyprland/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