diff --git a/assets/.config/niri/config.kdl b/assets/.config/niri/config.kdl index 6d9400c..3d2bff0 100644 --- a/assets/.config/niri/config.kdl +++ b/assets/.config/niri/config.kdl @@ -311,7 +311,9 @@ binds { Mod+Shift+M { spawn "proton-mail"; } Mod+Shift+P { spawn "rofi-rbw"; } Mod+Shift+T { spawn "thunar"; } - Mod+Shift+X hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; } + Mod+Shift+X hotkey-overlay-title="Lock the Screen: swaylock" { + spawn "sh" "-c" "loginctl lock-session; swaylock -f; niri msg action power-off-monitors"; + } // Use spawn-sh to run a shell command. Do this if you need pipes, multiple commands, etc. // Note: the entire command goes as a single argument. It's passed verbatim to `sh -c`.