feat(nix): toggle idle
This commit is contained in:
parent
675c57ae1b
commit
24ec763546
2 changed files with 4 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue