mirror of
https://github.com/bgrolleman/dotfiles.git
synced 2026-11-08 15:50:29 +01:00
Add auto lock/sleep to niri
This commit is contained in:
1 parent
73aa712074
commit
9a6031f44c
1 file changed
+6
@@ -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"
|
||||
Reference in new issue
Block a user