diff --git a/dot-config/hypr/hypridle.conf b/dot-config/hypr/hypridle.conf index f1f5d5d..68b6082 100644 --- a/dot-config/hypr/hypridle.conf +++ b/dot-config/hypr/hypridle.conf @@ -1,10 +1,34 @@ general { lock_cmd = ~/.config/hypr/bin/lockscreen + before_sleep_cmd = ~/.config/hypr/bin/before_sleep ignore_dbus_inhibit = false ignore_systemd_inhibit = false } listener { - timeout = 3600 - on-timeout = ~/.config/hypr/bin/lockscreen + timeout = 150 # 2.5min. + on-timeout = brightnessctl -s set 10 # set monitor backlight to minimum, avoid 0 on OLED monitor. + on-resume = brightnessctl -r # monitor backlight restore. +} + +listener { + timeout = 150 # 2.5min. + on-timeout = brightnessctl -sd 'dell::kbd_backlight' set 0 # turn off keyboard backlight. + on-resume = brightnessctl -rd 'dell::kbd_backlight' # turn on keyboard backlight. +} + +listener { + timeout = 300 # 5min + on-timeout = loginctl lock-session # lock screen when timeout has passed +} + +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. +} + +listener { + timeout = 1800 # 30min + on-timeout = systemctl suspend # suspend pc }