35 lines
1.4 KiB
Plaintext
35 lines
1.4 KiB
Plaintext
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 = 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
|
|
}
|