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