Add swaylock

This commit is contained in:
Natsu Kagami 2022-04-28 11:37:51 -04:00
parent acb3968daf
commit d1366a95c6
Signed by: nki
GPG key ID: 7306B3D3C3AD6E51
3 changed files with 23 additions and 0 deletions

View file

@ -104,6 +104,10 @@ in
"${mod}+Shift+r" = "mode resize";
## Screenshot
"Print" = "exec ${pkgs.flameshot}/bin/flameshot gui";
## Locking
"${mod}+semicolon" = "exec ${pkgs.swaylock}/bin/swaylock"
+ (if cfg.wallpaper == "" then "" else " -i ${cfg.wallpaper} -s fit")
+ " -l -k";
} // (
# Map the workspaces
builtins.listToAttrs (lib.flatten (map