Key binding for moving workspaces between outputs
This commit is contained in:
parent
7d643e5f0c
commit
e87b4a9459
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue