diff options
| author | Mosder <xmosder12@gmail.com> | 2026-01-12 13:32:23 +0100 |
|---|---|---|
| committer | Mosder <xmosder12@gmail.com> | 2026-01-12 13:32:23 +0100 |
| commit | b369f8d42a3806a7bc47ceca9b02245f6ff8557a (patch) | |
| tree | de55cbf00914ee4f4d4fcaa76758a39aa87ee087 /desktop/.config/hypr/hypridle.conf | |
| parent | f00280f737ef09b5bb9b79f09c57deaf57b6c327 (diff) | |
| parent | 1b6019803990b4aeae967b24f1b5e12d12020ba2 (diff) | |
Merge remote-tracking branch 'refs/remotes/origin/master'
Diffstat (limited to 'desktop/.config/hypr/hypridle.conf')
| -rw-r--r-- | desktop/.config/hypr/hypridle.conf | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/desktop/.config/hypr/hypridle.conf b/desktop/.config/hypr/hypridle.conf new file mode 100644 index 0000000..b328f6d --- /dev/null +++ b/desktop/.config/hypr/hypridle.conf @@ -0,0 +1,17 @@ +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. +} + +# after 30 min, lock +listener { + timeout = 1800 + on-timeout = loginctl lock-session +} + +# after 1 hour, suspend +listener { + timeout = 3600 + on-timeout = systemctl suspend +} |
