hypridle/hypridle.conf
Michal Hrusecky 6bac4880f3 - Update to version 0.1.5:
* Tiny update to fix dbus inhibitor locks not being decremented
    properly.
  * Core: handleDbusScreensaver must return uint32,
    (gh#hyprwm/hypridle#98).
- Changes from version 0.1.4:
  * Sdbus-cpp -> moved to >=2.0.0
  * Core: move to sdbus-cpp2, (gh#hyprwm/hypridle#96).
- Changes from version 0.1.3:
  * Add support for systemd-inhibit idle block inhibits,
    (gh#hyprwm/hypridle#57).
  * Use separate ignore_systemd_inhibit config param for systemd.
    Register ScreenSaver object under multiple paths,
    (gh#hyprwm/hypridle#59).
  * Fixed getconf command in build instructions,
    (gh#hyprwm/hypridle#60).
  * Reset timers after inhibitor has been taken off if idled,
    (gh#hyprwm/hypridle#72).
  * Config: use hyprutils helper, (gh#hyprwm/hypridle#77).
  * Fix running without logind, (gh#hyprwm/hypridle#76).
  * Typo fix hyprlock->hypridle, (gh#hyprwm/hypridle#82).
  * Include Log.hpp in main, (gh#hyprwm/hypridle#87).
  * Flush cout buffer automatically, (gh#hyprwm/hypridle#88).
  * Nix: add wayland-scanner native build input,
    (gh#hyprwm/hypridle#89).
  * Do not crash if the last CLI parameter was -c,
    (gh#hyprwm/hypridle#92).
  * Core: release inhibit cookies on app disconnect from dbus,
    (gh#hyprwm/hypridle#93).
- Add build requires on pkgconfig(hyprutils).
- Add build requires on Hyprland for directory ownership.
- Add default hypridle.conf now installed from the source, but
  retain example.

OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/hypridle?expand=0&rev=6
2024-12-20 14:31:03 +00:00

35 lines
1.4 KiB
Plaintext

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 having to press a key twice to turn on the display.
}
listener {
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 restor.
}
# turn off keyboard backlight, uncomment this section if have keyboard backlight.
listener {
timeout = 150 # 2.5min.
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 = 300 # 5min
on-timeout = loginctl lock-session # lock screen when timeout has passed
}
listener {
timeout = 380 # 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
}