added nicotine and lock when lid closed

This commit is contained in:
chloe 2025-10-03 08:19:36 +02:00
parent 1ec09c0571
commit 474bf2b8d4
2 changed files with 6 additions and 0 deletions

View file

@ -621,3 +621,8 @@ window-rule {
match app-id=r#"mpv$"# match app-id=r#"mpv$"#
open-floating true open-floating true
} }
// actions to do when lid closed
switch-events {
lid-close { spawn "swaylock" "--screenshots" "--clock" "--indicator" "--effect-blur" "7x5" "--effect-vignette" "0.5:0.5" "--fade-in" "0.2"; }
}

View file

@ -114,6 +114,7 @@
upower upower
matugen matugen
networkmanagerapplet networkmanagerapplet
nicotine-plus
]; ];
services.upower = { services.upower = {