diff options
Diffstat (limited to 'hypr/hypridle.conf')
| -rw-r--r-- | hypr/hypridle.conf | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/hypr/hypridle.conf b/hypr/hypridle.conf index 1389d93..e258a0c 100644 --- a/hypr/hypridle.conf +++ b/hypr/hypridle.conf @@ -1,10 +1,14 @@ 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. + lock_cmd = pidof hyprlock || hyprlock } listener { - timeout = 300 - on-timeout = loginctl lock-session + timeout = 300 + on-timeout = brightnessctl -se set 10% + on-resume = brightnessctl -r +} + +listener { + timeout = 450 + on-timeout = loginctl lock-session && niri msg action power-off-monitors } |
