Key binding for moving workspaces between outputs

This commit is contained in:
Natsu Kagami 2022-09-29 09:55:05 +02:00
parent 7d643e5f0c
commit e87b4a9459
Signed by: nki
GPG key ID: 7306B3D3C3AD6E51

View file

@ -117,7 +117,8 @@ in
# Main modifier # Main modifier
modifier = mod; modifier = mod;
keybindings = lib.mkOptionDefault keybindings = lib.mkOptionDefault
({ (
{
## Splits ## Splits
"${mod}+v" = "split v"; "${mod}+v" = "split v";
"${mod}+Shift+v" = "split h"; "${mod}+Shift+v" = "split h";
@ -130,9 +131,9 @@ in
"${mod}+semicolon" = "exec ${pkgs.swaylock}/bin/swaylock" "${mod}+semicolon" = "exec ${pkgs.swaylock}/bin/swaylock"
+ (if cfg.wallpaper == "" then "" else " -i ${cfg.wallpaper} -s fit") + (if cfg.wallpaper == "" then "" else " -i ${cfg.wallpaper} -s fit")
+ " -l -k"; + " -l -k";
} // ( } //
# Map the workspaces # Map the workspaces
builtins.listToAttrs (lib.flatten (map (builtins.listToAttrs (lib.flatten (map
(key: [ (key: [
{ {
name = "${mod}+${key}"; name = "${mod}+${key}";
@ -144,7 +145,13 @@ in
} }
]) ])
(builtins.attrNames wsAttrs)) (builtins.attrNames wsAttrs))
))); )) //
# Move workspaces between outputs
{
"${mod}+ctrl+h" = "move workspace to output left";
"${mod}+ctrl+l" = "move workspace to output right";
}
);
### Fonts ### Fonts
# #