diff options
| author | mirenn <me@mirenn.dev> | 2024-12-26 14:33:06 +0100 |
|---|---|---|
| committer | mirenn <me@mirenn.dev> | 2024-12-30 21:07:42 +0100 |
| commit | 1875562dce9510a5df3ca26b64851c17c5f8d2ec (patch) | |
| tree | 0460bc0600492324f111524dfdff1ef85c9fbf8e /hypr/hypridle.conf | |
| parent | 4128e6db5c3d16e399e1bee5185231ac463032bc (diff) | |
| download | dotfiles-1875562dce9510a5df3ca26b64851c17c5f8d2ec.tar.gz dotfiles-1875562dce9510a5df3ca26b64851c17c5f8d2ec.zip | |
wallust
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 } |
