hypridle: notebook
This commit is contained in:
parent
57f6961e9f
commit
0a64fa9c8f
|
@ -1,10 +1,34 @@
|
|||
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 = 3600
|
||||
on-timeout = ~/.config/hypr/bin/lockscreen
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue