From 4de5a217c25fe83bb54063f8d842b78c9e6d7fb3 Mon Sep 17 00:00:00 2001 From: "eric.marin" Date: Thu, 26 Dec 2024 14:33:06 +0100 Subject: wallust --- hypr/hypridle.conf | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'hypr/hypridle.conf') 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 } -- cgit v1.2.3