40 lines
962 B
Plaintext
40 lines
962 B
Plaintext
#-- General ----------------------------------------------------
|
|
general {
|
|
lock_cmd = pidof hyprlock || hyprlock
|
|
before_sleep_cmd = loginctl lock-session
|
|
after_sleep_cmd = hyprctl dispatch dpms on
|
|
}
|
|
|
|
# set monitor backlight to minimum, avoid 0 on OLED monitor
|
|
listener {
|
|
timeout = 120
|
|
on-timeout = light -O && light -S 5
|
|
on-resume = light -I
|
|
}
|
|
|
|
# turn off keyboard backlight, comment out this section if you dont have a keyboard backlight.
|
|
#listener {
|
|
# timeout = 120
|
|
# on-timeout = brightnessctl -sd rgb:kbd_backlight set 0
|
|
# on-resume = brightnessctl -rd rgb:kbd_backlight
|
|
#}
|
|
|
|
# lock screen when timeout has passed
|
|
listener {
|
|
timeout = 240
|
|
on-timeout = loginctl lock-session
|
|
}
|
|
|
|
# screen off when timeout has passed
|
|
listener {
|
|
timeout = 360
|
|
on-timeout = hyprctl dispatch dpms off
|
|
on-resume = hyprctl dispatch dpms on
|
|
}
|
|
|
|
# suspend pc
|
|
# listener {
|
|
# timeout = 900
|
|
# on-timeout = systemctl suspend
|
|
# }
|