diff options
| author | eric.marin <maarin.eric@gmail.com> | 2024-12-26 14:33:06 +0100 |
|---|---|---|
| committer | eric.marin <maarin.eric@gmail.com> | 2024-12-30 21:07:42 +0100 |
| commit | 4de5a217c25fe83bb54063f8d842b78c9e6d7fb3 (patch) | |
| tree | 0460bc0600492324f111524dfdff1ef85c9fbf8e /hypr/hypridle.conf | |
| parent | ee2b01a3fff043a8b977385227c2659bbcf2e59a (diff) | |
| download | dotfiles-4de5a217c25fe83bb54063f8d842b78c9e6d7fb3.tar.gz dotfiles-4de5a217c25fe83bb54063f8d842b78c9e6d7fb3.zip | |
wallust
Diffstat (limited to '')
| -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 } |
