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+C".action = power-off-monitors;
# Session lock
"Mod+Escape".action = spawn [ loginctl "lock-session" ];
# Multimedia keys
XF86Explorer.action = spawn [ xdg-open "https:" ];
} // lib.mapAttrs (n: v: v // { allow-when-locked = true; }) {