dotfiles/dot-config/hypr/hypridle.conf

35 lines
1.4 KiB
Plaintext
Raw Permalink Normal View History

2024-10-25 11:48:49 +00:00
general {
lock_cmd = ~/.config/hypr/bin/lockscreen
2025-01-01 10:48:35 +00:00
before_sleep_cmd = ~/.config/hypr/bin/before_sleep
2024-10-25 11:48:49 +00:00
ignore_dbus_inhibit = false
ignore_systemd_inhibit = false
}
listener {
2025-01-01 10:48:35 +00:00
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
2024-10-25 11:48:49 +00:00
}