aboutsummaryrefslogtreecommitdiff
path: root/hypr/hypridle.conf
diff options
context:
space:
mode:
Diffstat (limited to 'hypr/hypridle.conf')
-rw-r--r--hypr/hypridle.conf16
1 files changed, 16 insertions, 0 deletions
diff --git a/hypr/hypridle.conf b/hypr/hypridle.conf
new file mode 100644
index 0000000..9f6cc4b
--- /dev/null
+++ b/hypr/hypridle.conf
@@ -0,0 +1,16 @@
+general {
+ lock_cmd = pidof hyprlock || hyprlock
+ before_sleep_cmd = loginctl lock-session
+ after_sleep_cmd = hyprctl dispatch 'hl.dsp.dpms({action = "on"})'
+}
+
+listener {
+ timeout = 600 # 10 min - lock the session
+ on-timeout = loginctl lock-session
+}
+
+listener {
+ timeout = 720 # 12 min - blank the display
+ on-timeout = hyprctl dispatch 'hl.dsp.dpms({action = "off"})'
+ on-resume = hyprctl dispatch 'hl.dsp.dpms({action = "on"})'
+}