wayland.windowManager.sway.config.modes

Home-Manager option

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’.

type: attribute set of attribute set of string
Default
{ 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"; }; }
declared in: <home-manager/modules/services/window-managers/i3-sway/sway.nix>source unavailable