An attribute set that defines binding modes and keybindings inside them
Only basic keybinding is supported (bindsym keycomb action), for more advanced setup use 'sway.extraConfig'.
Declarations
Type
attribute set of attribute set of stringDefault
{
resize = {
# Binds arrow keys to resizing commands
${cfg.config.left}" = "resize shrink width 10 px";
${cfg.config.down}" = "resize grow height 10 px";
${cfg.config.up}" = "resize shrink height 10 px";
${cfg.config.right}" = "resize grow width 10 px";
"Left" = "resize shrink width 10 px";
"Down" = "resize grow height 10 px";
"Up" = "resize shrink height 10 px";
"Right" = "resize grow width 10 px";
# Exit resize mode
"Escape" = "mode default";
"Return" = "mode default";
};
}