aboutsummaryrefslogtreecommitdiff
path: root/hypr/hypridle.conf
diff options
context:
space:
mode:
authormirenn <me@mirenn.dev>2025-03-24 08:42:44 +0100
committermirenn <me@mirenn.dev>2025-09-07 21:19:28 +0200
commit1f2c530f0d6e1e32ea462166b1538425b0cd0fcd (patch)
treef045e8af54d09e7c19186c29d20ee0a28f2743d3 /hypr/hypridle.conf
parent70d4c4f8045ed0d4e873a1383bbcbd91e31a7706 (diff)
downloaddotfiles-1f2c530f0d6e1e32ea462166b1538425b0cd0fcd.tar.gz
dotfiles-1f2c530f0d6e1e32ea462166b1538425b0cd0fcd.zip
update
Diffstat (limited to '')
-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
}