aboutsummaryrefslogtreecommitdiff
path: root/desktop/.config/hypr/hypridle.conf
diff options
context:
space:
mode:
authorMosder <xmosder12@gmail.com>2025-12-08 19:49:48 +0000
committerMosder <xmosder12@gmail.com>2025-12-08 19:49:48 +0000
commit08787600c2065d49ce560186b619ac25fe1622fb (patch)
tree461ceaeb722245d9001391178926b488d50140a8 /desktop/.config/hypr/hypridle.conf
parent2b2e01cbff377309d7d63f6090c25eb9e483065a (diff)
desktop hyprland
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..1210312
--- /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 5 min, lock
+listener {
+ timeout = 300
+ on-timeout = loginctl lock-session
+}
+
+# after 30 min, suspend
+listener {
+ timeout = 1800
+ on-timeout = systemctl suspend
+}