add hypridle conf
This commit is contained in:
31
hypridle/.config/hypr/hypridle.conf
Normal file
31
hypridle/.config/hypr/hypridle.conf
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
general {
|
||||||
|
lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
|
||||||
|
before_sleep_cmd = loginctl lock-session # lock before suspend.
|
||||||
|
after_sleep_cmd = hyprctl dispatch dpms on # to avoid press a key twice to turn on the display.
|
||||||
|
}
|
||||||
|
|
||||||
|
# Screen
|
||||||
|
listener {
|
||||||
|
timeout = 150 # 2.5 mins
|
||||||
|
on-timeout = brightnessctl -s set 10 # brightness down
|
||||||
|
on-resume = brightnessctl -r # brightness restor
|
||||||
|
}
|
||||||
|
|
||||||
|
# Keyboard
|
||||||
|
listener {
|
||||||
|
timeout = 150 # 2.5min.
|
||||||
|
on-timeout = brightnessctl -sd tpacpi::kbd_backlight set 0 # turn off keyboard backlight.
|
||||||
|
on-resume = brightnessctl -rd tpacpi::kbd_backlight # turn on keyboard backlight.
|
||||||
|
}
|
||||||
|
|
||||||
|
# Lock
|
||||||
|
listener {
|
||||||
|
timeout = 300 # 5min
|
||||||
|
on-timeout = loginctl lock-session # lock screen when timeout has passed
|
||||||
|
}
|
||||||
|
|
||||||
|
# Suspend
|
||||||
|
listener {
|
||||||
|
timeout = 360 # 6min
|
||||||
|
on-timeout = systemctl suspend # suspend
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user