From 24ec76354694cc9ff9b08708feec5aeea8fbc3b0 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Tue, 17 Feb 2026 00:05:43 -0500 Subject: [PATCH] feat(nix): toggle idle --- config/tmux/tmux.conf | 4 ++-- scripts/ctl | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/tmux/tmux.conf b/config/tmux/tmux.conf index 6a838b1..a3194b7 100644 --- a/config/tmux/tmux.conf +++ b/config/tmux/tmux.conf @@ -85,5 +85,5 @@ unbind s; bind s run 'mux shell' unbind g; bind g run 'mux git' unbind m; bind m run 'mux misc' -# set -g lock-after-time 300 -# set -g lock-command "pipes -p 2" +set -g lock-after-time 300 +set -g lock-command "pipes -p 2" diff --git a/scripts/ctl b/scripts/ctl index a489437..58d9b12 100755 --- a/scripts/ctl +++ b/scripts/ctl @@ -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 ;;