mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-25 10:18:37 +02:00
38 lines
1.6 KiB
Plaintext
38 lines
1.6 KiB
Plaintext
|
|
general {
|
|
lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple instances
|
|
before_sleep_cmd = loginctl lock-session # lock before suspend
|
|
after_sleep_cmd = hyprctl dispatch dpms on # resume dpms after suspend
|
|
ignore_dbus_inhibit = false # whether to ignore dbus-sent idle-inhibit requests
|
|
}
|
|
|
|
# turn off keyboard backlight, comment out this section if you dont have a keyboard backlight.
|
|
# listener {
|
|
# timeout = 180 # 3 minutes
|
|
# on-timeout = brightnessctl -sd rgb:kbd_backlight set 0 # turn off keyboard backlight.
|
|
# on-resume = brightnessctl -rd rgb:kbd_backlight # turn on keyboard backlight.
|
|
# }
|
|
|
|
# listener {
|
|
# timeout = 600 # 10min.
|
|
# 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 = 1200 # 20 minutes
|
|
on-timeout = pidof hyprlock || hyprlock # lock screen
|
|
on-resume = hyprctl dispatch dpms on # monitor wake up
|
|
}
|
|
|
|
listener {
|
|
timeout = 1260 # 21 minutes
|
|
on-timeout = hyprctl dispatch dpms off # screen off
|
|
on-resume = hyprctl dispatch dpms on && brightnessctl -r # monitor wake up & screen on
|
|
}
|
|
|
|
# listener {
|
|
# timeout = 1800 # 30min
|
|
# on-timeout = systemctl suspend # suspend pc
|
|
# }
|