mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 12:19:24 +00:00
Add hotkey to prevent idling on SUPER + CTRL + I
This commit is contained in:
9
bin/omarchy-toggle-idle
Executable file
9
bin/omarchy-toggle-idle
Executable file
@ -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
|
@ -27,6 +27,9 @@ bind = SUPER, W, killactive,
|
|||||||
# Power menu controls lock, suspend, relaunch, restart, shutdown
|
# Power menu controls lock, suspend, relaunch, restart, shutdown
|
||||||
bind = SUPER, ESCAPE, exec, ~/.local/share/omarchy/bin/omarchy-power-menu
|
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
|
# Control tiling
|
||||||
bind = SUPER, J, togglesplit, # dwindle
|
bind = SUPER, J, togglesplit, # dwindle
|
||||||
bind = SUPER, P, pseudo, # dwindle
|
bind = SUPER, P, pseudo, # dwindle
|
||||||
|
Reference in New Issue
Block a user