MyNixOS website logo
option

wayland.windowManager.sway.config.modes

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 string
Default
{
  resize = {
    Down = "resize grow height 10 px";
    Escape = "mode default";
    Left = "resize shrink width 10 px";
    Return = "mode default";
    Right = "resize grow width 10 px";
    Up = "resize shrink height 10 px";
    h = "resize shrink width 10 px";
    j = "resize grow height 10 px";
    k = "resize shrink height 10 px";
    l = "resize grow width 10 px";
  };
}