An attribute set that assigns a key press to an action using a key symbol. See https://i3wm.org/docs/userguide.html#keybindings.
Consider to use lib.mkOptionDefault
function to extend or override default keybindings instead of specifying all of them from scratch.
Declarations
Type
attribute set of (null or string)
Default
"Default sway keybindings."
Example
let
modifier = config.wayland.windowManager.sway.config.modifier;
in lib.mkOptionDefault {
"${modifier}+Return" = "exec ${pkgs.foot}/bin/foot";
"${modifier}+Shift+q" = "kill";
"${modifier}+d" = "exec ${pkgs.dmenu}/bin/dmenu_path | ${pkgs.dmenu}/bin/dmenu | ${pkgs.findutils}/bin/xargs swaymsg exec --";
}
Sign in to create a configuration using this setting.