feat(nix): toggle idle

This commit is contained in:
Barrett Ruth 2026-02-17 00:05:43 -05:00
parent 675c57ae1b
commit 24ec763546
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
2 changed files with 4 additions and 2 deletions

View file

@ -415,9 +415,11 @@ power)
idle)
require notify-send
if pkill hypridle; then
tmux set -g lock-after-time 0 2>/dev/null
notify-send -a ctl -t 2500 'idle off'
else
hypridle &
tmux set -g lock-after-time 300 2>/dev/null
notify-send -a ctl -t 2500 'idle on'
fi
;;