Add auto lock/sleep to niri

This commit is contained in:
2026-06-03 07:39:55 +02:00
parent 73aa712074
commit 9a6031f44c
+6
View File
@@ -2,3 +2,9 @@
// https://github.com/YaLTeR/niri/wiki/Configuration:-Miscellaneous#spawn-sh-at-startup
spawn-sh-at-startup "qs -c noctalia-shell"
// Lock screen after 5 min, turn off monitors after 15 min
spawn-at-startup "swayidle" "-w"
"timeout" "300" "qs -c noctalia-shell ipc call lockScreen lock"
"timeout" "900" "niri msg action power-off-monitors"
"resume" "niri msg action power-on-monitors"