hypridle.conf 620 B

12345678910111213141516
  1. general {
  2. lock_cmd = pidof hyprlock || hyprlock # dbus/sysd lock command (loginctl lock-session)
  3. before_sleep_cmd = loginctl lock-session # lock before suspend
  4. after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display
  5. }
  6. listener {
  7. timeout = 300 # 5 mins
  8. on-timeout = hyprctl dispatch dpms off # screen off
  9. on-resume = hyprctl dispatch dpms on # screen on
  10. }
  11. listener {
  12. timeout = 1200 # 20 mins
  13. on-timeout = loginctl lock-session # lock screen
  14. }