Add shortcut for toggling dunst idle mode

This commit is contained in:
ItsDrike 2022-10-30 22:02:00 +01:00
parent 1e534616c7
commit 8b8d24c4b1
No known key found for this signature in database
GPG key ID: B014E761034AF742
2 changed files with 11 additions and 0 deletions

View file

@ -107,6 +107,7 @@ bind = SUPER_SHIFT, Q, exec, menuprompt --yesno -p "Quit Hyprland?" && hyprctl d
bind = SUPER_CTRL, L, exec, swaylock -fF bind = SUPER_CTRL, L, exec, swaylock -fF
bind = SUPER_SHIFT, L, exec, wlogout -p layer-shell bind = SUPER_SHIFT, L, exec, wlogout -p layer-shell
bind = SUPER_SHIFT, T, exec, toggle-idle bind = SUPER_SHIFT, T, exec, toggle-idle
bind = SUPER_SHIFT, D, exec, toggle-notifications
# Programs # Programs
bind = SUPER, Return, exec, alacritty bind = SUPER, Return, exec, alacritty

View 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