mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-25 12:44:35 +00:00
Add shortcut for toggling dunst idle mode
This commit is contained in:
parent
1e534616c7
commit
8b8d24c4b1
|
@ -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_SHIFT, L, exec, wlogout -p layer-shell
|
||||
bind = SUPER_SHIFT, T, exec, toggle-idle
|
||||
bind = SUPER_SHIFT, D, exec, toggle-notifications
|
||||
|
||||
# Programs
|
||||
bind = SUPER, Return, exec, alacritty
|
||||
|
|
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…
Reference in a new issue