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,22 +117,23 @@ in
# Main modifier # Main modifier
modifier = mod; modifier = mod;
keybindings = lib.mkOptionDefault keybindings = lib.mkOptionDefault
({ (
## Splits {
"${mod}+v" = "split v"; ## Splits
"${mod}+Shift+v" = "split h"; "${mod}+v" = "split v";
## Run "${mod}+Shift+v" = "split h";
"${mod}+r" = "exec ${config.wayland.windowManager.sway.config.menu}"; ## Run
"${mod}+Shift+r" = "mode resize"; "${mod}+r" = "exec ${config.wayland.windowManager.sway.config.menu}";
## Screenshot "${mod}+Shift+r" = "mode resize";
"Print" = "exec ${screenshotScript}/bin/screenshot"; ## Screenshot
## Locking "Print" = "exec ${screenshotScript}/bin/screenshot";
"${mod}+semicolon" = "exec ${pkgs.swaylock}/bin/swaylock" ## Locking
"${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
# #