summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorryukamish <[email protected]>2026-03-22 16:05:36 +0530
committerryukamish <[email protected]>2026-03-22 16:05:36 +0530
commita08d06326780d4f0c39a68acb0bf251b79fb61b3 (patch)
tree97f93f7ebec05ba9c270de19f555f79776a02598
parent047688ea39227489329d364d442afef274eb88e9 (diff)
fix: swaylock powering off monitor first then locks it
-rw-r--r--niri/cfg/autostart.kdl5
1 files changed, 3 insertions, 2 deletions
diff --git a/niri/cfg/autostart.kdl b/niri/cfg/autostart.kdl
index 87c65db..98b9c13 100644
--- a/niri/cfg/autostart.kdl
+++ b/niri/cfg/autostart.kdl
@@ -1,8 +1,9 @@
// spawn-at-startup "qs" "-c" "noctalia-shell" "--no-duplicate"
spawn-sh-at-startup "/usr/lib/polkit-kde-authentication-agent-1 &" // Polkit
spawn-at-startup "swayidle" "-w" \
- "timeout" "300" "swaylock" \
- "timeout" "310" "'niri' 'msg' 'action' 'power-off-monitors'" \
+ "timeout" "300" "'niri' 'msg' 'action' 'power-off-monitors'" \
+ "timeout" "310" "swaylock" \
+ "resume" "'niri' 'msg' 'action' 'power-on-monitors'" \
"before-sleep" "swaylock"
spawn-at-startup "swww-daemon"