tweaks to make hypridle only logout and lock if on laptop
This commit is contained in:
parent
50be183de9
commit
b6fe020ff3
|
@ -62,22 +62,23 @@ in
|
|||
on-timeout = brightnessctl -s set 10 # set monitor backlight to minimum, avoid 0 on OLED monitor.
|
||||
on-resume = brightnessctl -r # monitor backlight restore.
|
||||
}
|
||||
|
||||
${if laptop then ''
|
||||
listener {
|
||||
timeout = 300 # 5min
|
||||
on-timeout = loginctl lock-session # lock screen when timeout has passed
|
||||
}
|
||||
|
||||
'' else ""}
|
||||
listener {
|
||||
timeout = 330 # 5.5min
|
||||
on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed
|
||||
on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired.
|
||||
}
|
||||
|
||||
${if laptop then ''
|
||||
listener {
|
||||
timeout = 1800 # 30min
|
||||
on-timeout = systemctl suspend # suspend pc
|
||||
}
|
||||
'' else ""}
|
||||
'';
|
||||
};
|
||||
home.file.".config/hypr/hyprpaper.conf" = {
|
||||
|
|
Loading…
Reference in a new issue