diff --git a/home/modules/hyprland.nix b/home/modules/hyprland.nix index 2a02728..dafbc47 100644 --- a/home/modules/hyprland.nix +++ b/home/modules/hyprland.nix @@ -57,7 +57,7 @@ in general { lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances. 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 { @@ -80,6 +80,7 @@ in listener { timeout = 1800 # 30min on-timeout = systemctl suspend # suspend pc + on-resume = systemctl --user restart jellyfin-mpv-shim.service # restart jellyfin } '' else ""} '';