Zellij
What this config does
Zellij uses the repo config from conf/modules/zellij. Home Manager copies that
directory to ~/.config/zellij.
Nix location
conf/shared.nix: installszellijconf/shared.nix: copiesconf/modules/zellijconf/modules/zellij/config.kdl: shared configconf/modules/zellij/layouts/*.kdl: layoutsconf/modules/zellij/themes/*.kdl: themes
Portable setup
Install Zellij, then copy the config:
mkdir -p ~/.config
cp -r conf/modules/zellij ~/.config/zellij
Validate it:
ZELLIJ_CONFIG_FILE="$HOME/.config/zellij/config.kdl" \
ZELLIJ_CONFIG_DIR="$HOME/.config/zellij" \
zellij setup --check
Layouts
Available local layouts:
| Layout | Notes |
|---|---|
default | single pane plus compact bar |
classic | large left pane, two stacked right panes, compact bar |
ide | strider file explorer, Neovim pane, execution and VCS panes |
ide-stack | Neovim-style top pane with a lower terminal pane |
ide-stack-2 | Neovim-style pane, side pane, and testing pane |
Run a layout by name:
zellij --layout ide
zellij -l ide-stack
Run a layout by path while editing it:
zellij --layout ~/.config/zellij/layouts/classic.kdl
Keys
Shared config starts in locked mode. Press Ctrl-g to toggle locked and normal
mode.
Common bindings:
Alt-h,Alt-j,Alt-k,Alt-l: move focusAlt-[,Alt-]: cycle swap layoutsAlt-n: new paneAlt-f: toggle floating panes
Check it
zellij --version
zellij setup --check