feat(nix): toggle idle
This commit is contained in:
parent
675c57ae1b
commit
24ec763546
2 changed files with 4 additions and 2 deletions
|
|
@ -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