Add shortcut for toggling swayidle

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

View file

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

View file

@ -0,0 +1,9 @@
#!/bin/sh
if pgrep swayidle >/dev/null; then
killall swayidle
notify-send "Idle" "Idle timeouts disabled"
else
swayidle & disown
notify-send "Idle" "Idle timeouts enabled"
fi