home: Add niri binding to lock session

This commit is contained in:
Mikael 2024-08-26 20:26:44 +02:00
parent bfd689523a
commit cc98659942
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

View file

@ -219,6 +219,9 @@ in lib.mkIf (osConfig.hardware.graphics.enable or false) {
"Mod+Shift+U".action = quit; "Mod+Shift+U".action = quit;
"Mod+Shift+C".action = power-off-monitors; "Mod+Shift+C".action = power-off-monitors;
# Session lock
"Mod+Escape".action = spawn [ loginctl "lock-session" ];
# Multimedia keys # Multimedia keys
XF86Explorer.action = spawn [ xdg-open "https:" ]; XF86Explorer.action = spawn [ xdg-open "https:" ];
} // lib.mapAttrs (n: v: v // { allow-when-locked = true; }) { } // lib.mapAttrs (n: v: v // { allow-when-locked = true; }) {