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 ;;