adding idle and lock back
This commit is contained in:
parent
35bbc655f5
commit
b1524a64c7
1 changed files with 2 additions and 1 deletions
|
@ -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 ""}
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue