aboutsummaryrefslogtreecommitdiff
path: root/hypr/hypridle.conf
diff options
context:
space:
mode:
Diffstat (limited to 'hypr/hypridle.conf')
-rw-r--r--hypr/hypridle.conf4
1 files changed, 3 insertions, 1 deletions
diff --git a/hypr/hypridle.conf b/hypr/hypridle.conf
index 3479819..7f9a435 100644
--- a/hypr/hypridle.conf
+++ b/hypr/hypridle.conf
@@ -1,5 +1,7 @@
general {
lock_cmd = pidof hyprlock || hyprlock
+ before_sleep_cmd = loginctl lock-session && niri msg action power-off-monitors
+ inhibit_sleep = 1
}
listener {
@@ -10,5 +12,5 @@ listener {
listener {
timeout = 360
- on-timeout = loginctl lock-session && niri msg action power-off-monitors
+ on-timeout = systemctl suspend
}