mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-26 05:04:34 +00:00
Add shortcut for toggling swayidle
This commit is contained in:
parent
1f6ad7f0b6
commit
1e534616c7
|
@ -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
|
||||
|
|
9
home/.local/bin/scripts/gui/hyprland/toggle-idle
Executable file
9
home/.local/bin/scripts/gui/hyprland/toggle-idle
Executable 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
|
Loading…
Reference in a new issue