programs.zellij.extraConfig
Home-Manager option
Extra configuration lines to add to $XDG_CONFIG_HOME/zellij/config.kdl. This does not support zellij.yaml and it’s mostly a workaround for https://github.com/nix-community/home-manager/issues/4659.
type: strings concatenated with “\n”Default
""
Example
declared in: <home-manager/modules/programs/zellij.nix>source unavailable'' keybinds { // keybinds are divided into modes normal { // bind instructions can include one or more keys (both keys will be bound separately) // bind keys can include one or more actions (all actions will be performed with no sequential guarantees) bind "Ctrl g" { SwitchToMode "locked"; } bind "Ctrl p" { SwitchToMode "pane"; } bind "Alt n" { NewPane; } bind "Alt h" "Alt Left" { MoveFocusOrTab "Left"; } } pane { bind "h" "Left" { MoveFocus "Left"; } bind "l" "Right" { MoveFocus "Right"; } bind "j" "Down" { MoveFocus "Down"; } bind "k" "Up" { MoveFocus "Up"; } bind "p" { SwitchFocus; } } locked { bind "Ctrl g" { SwitchToMode "normal"; } } } ''