aboutsummaryrefslogtreecommitdiff
path: root/desktop/.config/hypr/hypridle.conf
diff options
context:
space:
mode:
authorMosder <xmosder12@gmail.com>2026-01-12 13:32:23 +0100
committerMosder <xmosder12@gmail.com>2026-01-12 13:32:23 +0100
commitb369f8d42a3806a7bc47ceca9b02245f6ff8557a (patch)
treede55cbf00914ee4f4d4fcaa76758a39aa87ee087 /desktop/.config/hypr/hypridle.conf
parentf00280f737ef09b5bb9b79f09c57deaf57b6c327 (diff)
parent1b6019803990b4aeae967b24f1b5e12d12020ba2 (diff)
Merge remote-tracking branch 'refs/remotes/origin/master'
Diffstat (limited to 'desktop/.config/hypr/hypridle.conf')
-rw-r--r--desktop/.config/hypr/hypridle.conf17
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
+}