commit a08d06326780d4f0c39a68acb0bf251b79fb61b3
parent 047688ea39227489329d364d442afef274eb88e9
Author: ryukamish <[email protected]>
Date: Sun, 22 Mar 2026 16:05:36 +0530
fix: swaylock powering off monitor first then locks it
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git 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"