aboutsummaryrefslogtreecommitdiff
path: root/hypr/hypridle.conf
diff options
context:
space:
mode:
authoreric.marin <maarin.eric@gmail.com>2025-03-24 08:42:44 +0100
committereric.marin <maarin.eric@gmail.com>2025-09-07 21:19:28 +0200
commit5798601f2527b6535fbafba7e22de4dd53954718 (patch)
treef045e8af54d09e7c19186c29d20ee0a28f2743d3 /hypr/hypridle.conf
parent04d957a4d276c6c18570d6d658b17bed36f3190b (diff)
downloaddotfiles-5798601f2527b6535fbafba7e22de4dd53954718.tar.gz
dotfiles-5798601f2527b6535fbafba7e22de4dd53954718.zip
update
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
}