mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-25 09:28:27 +02:00
chore: adjust hypridle's timeout
This commit is contained in:
@@ -13,25 +13,25 @@ general {
|
|||||||
# on-resume = brightnessctl -rd rgb:kbd_backlight # turn on keyboard backlight.
|
# on-resume = brightnessctl -rd rgb:kbd_backlight # turn on keyboard backlight.
|
||||||
# }
|
# }
|
||||||
|
|
||||||
listener {
|
# listener {
|
||||||
timeout = 180 # 3min.
|
# timeout = 600 # 10min.
|
||||||
on-timeout = brightnessctl -s set 10 # set monitor backlight to minimum, avoid 0 on OLED monitor.
|
# on-timeout = brightnessctl -s set 10 # set monitor backlight to minimum, avoid 0 on OLED monitor.
|
||||||
on-resume = brightnessctl -r # monitor backlight restore.
|
# on-resume = brightnessctl -r # monitor backlight restore.
|
||||||
}
|
# }
|
||||||
|
|
||||||
listener {
|
listener {
|
||||||
timeout = 300 # 5 minutes
|
timeout = 1200 # 20 minutes
|
||||||
on-timeout = pidof hyprlock || hyprlock # lock screen
|
on-timeout = pidof hyprlock || hyprlock # lock screen
|
||||||
on-resume = hyprctl dispatch dpms on # monitor wake up
|
on-resume = hyprctl dispatch dpms on # monitor wake up
|
||||||
}
|
}
|
||||||
|
|
||||||
listener {
|
listener {
|
||||||
timeout = 360 # 6 minutes
|
timeout = 1260 # 21 minutes
|
||||||
on-timeout = hyprctl dispatch dpms off # screen off
|
on-timeout = hyprctl dispatch dpms off # screen off
|
||||||
on-resume = hyprctl dispatch dpms on && brightnessctl -r # monitor wake up & screen on
|
on-resume = hyprctl dispatch dpms on && brightnessctl -r # monitor wake up & screen on
|
||||||
}
|
}
|
||||||
|
|
||||||
# listener {
|
# listener {
|
||||||
# timeout = 600 # 10min
|
# timeout = 1800 # 30min
|
||||||
# on-timeout = systemctl suspend # suspend pc
|
# on-timeout = systemctl suspend # suspend pc
|
||||||
# }
|
# }
|
||||||
|
|||||||
Reference in New Issue
Block a user