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
modifier = mod;
keybindings = lib.mkOptionDefault
({
(
{
## Splits
"${mod}+v" = "split v";
"${mod}+Shift+v" = "split h";
@ -130,9 +131,9 @@ in
"${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
(builtins.listToAttrs (lib.flatten (map
(key: [
{
name = "${mod}+${key}";
@ -144,7 +145,13 @@ in
}
])
(builtins.attrNames wsAttrs))
)));
)) //
# Move workspaces between outputs
{
"${mod}+ctrl+h" = "move workspace to output left";
"${mod}+ctrl+l" = "move workspace to output right";
}
);
### Fonts
#