fix(hyprland): use hypridle systemd service instead

This commit is contained in:
Barrett Ruth 2026-02-21 01:42:52 -05:00
parent 9c0b2186ce
commit a5c4aecba2
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
3 changed files with 23 additions and 26 deletions

View file

@ -400,11 +400,12 @@ power)
;;
idle)
require notify-send
if pkill hypridle; then
if systemctl --user is-active --quiet hypridle.service; then
systemctl --user stop hypridle.service
tmux set -g lock-after-time 0 2>/dev/null
notify-send -a ctl -t 2500 'idle off'
else
hypridle &
systemctl --user start hypridle.service
tmux set -g lock-after-time 300 2>/dev/null
notify-send -a ctl -t 2500 'idle on'
fi