adding idle and lock back

This commit is contained in:
Chris Cochrun 2025-07-12 05:39:59 -05:00
parent 35bbc655f5
commit b1524a64c7

View file

@ -57,7 +57,7 @@ in
general { general {
lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances. lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
before_sleep_cmd = loginctl lock-session # lock before suspend. before_sleep_cmd = loginctl lock-session # lock before suspend.
after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display. after_sleep_cmd = hyprctl dispatch dpms on && sleep 5 && systemctl --user restart jellyfin-mpv-shim
} }
listener { listener {
@ -80,6 +80,7 @@ in
listener { listener {
timeout = 1800 # 30min timeout = 1800 # 30min
on-timeout = systemctl suspend # suspend pc on-timeout = systemctl suspend # suspend pc
on-resume = systemctl --user restart jellyfin-mpv-shim.service # restart jellyfin
} }
'' else ""} '' else ""}
''; '';