From a08d06326780d4f0c39a68acb0bf251b79fb61b3 Mon Sep 17 00:00:00 2001 From: ryukamish Date: Sun, 22 Mar 2026 16:05:36 +0530 Subject: fix: swaylock powering off monitor first then locks it --- niri/cfg/autostart.kdl | 5 +++-- 1 file 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" -- cgit v1.3