diff --git a/bin/omarchy-toggle-idle b/bin/omarchy-toggle-idle new file mode 100755 index 0000000..57a8aac --- /dev/null +++ b/bin/omarchy-toggle-idle @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +if pgrep -x hypridle > /dev/null; then + pkill -x hypridle + notify-send "Stop locking computer when idle" +else + setsid hypridle &> /dev/null & + notify-send "Now locking computer when idle" +fi diff --git a/default/hypr/bindings.conf b/default/hypr/bindings.conf index 546bcfc..2357e53 100644 --- a/default/hypr/bindings.conf +++ b/default/hypr/bindings.conf @@ -27,6 +27,9 @@ bind = SUPER, W, killactive, # Power menu controls lock, suspend, relaunch, restart, shutdown bind = SUPER, ESCAPE, exec, ~/.local/share/omarchy/bin/omarchy-power-menu +# Toggle idling +bind = SUPER CTRL, I, exec, ~/.local/share/omarchy/bin/omarchy-toggle-idle + # Control tiling bind = SUPER, J, togglesplit, # dwindle bind = SUPER, P, pseudo, # dwindle