nixos-config/home-manager/modules/zellij/config.kdl

73 lines
2.1 KiB
Text

keybinds {
shared {
unbind "Alt l" "Alt j" "Alt k" "Ctrl n" "Ctrl b"
bind "Ctrl m" { SwitchToMode "resize"; }
bind "Alt h" "Alt Left" { MoveFocusOrTab "Left"; }
bind "Alt i" "Alt Right" { MoveFocusOrTab "Right"; }
bind "Alt n" "Alt Down" { MoveFocus "Down"; }
bind "Alt e" "Alt Up" { MoveFocus "Up"; }
bind "Alt c" { NewPane; }
}
shared_among "pane" "resize" "move" "tab" {
unbind "l" "j" "k" "n"
bind "h" "Left" { MoveFocusOrTab "Left"; }
bind "i" "Right" { MoveFocusOrTab "Right"; }
bind "n" "Down" { MoveFocus "Down"; }
bind "e" "Up" { MoveFocus "Up"; }
}
shared_among "scroll" "search" {
unbind "l" "j" "k"
bind "n" "Down" { ScrollDown; }
bind "e" "Up" { ScrollUp; }
bind "Ctrl f" "PageDown" "Right" "i" { PageScrollDown; }
bind "Ctrl b" "PageUp" "Left" "h" { PageScrollUp; }
}
tab {
unbind "n"
bind "c" { NewTab; SwitchToMode "normal"; }
}
pane {
unbind "f"
bind "Ctrl m" { SwitchToMode "resize"; }
bind "c" { NewPane; SwitchToMode "normal"; }
bind "z" { TogglePaneFrames; SwitchToMode "normal"; }
bind "w" { ToggleFloatingPanes; SwitchToMode "normal"; }
bind "f" { TogglePaneEmbedOrFloating; SwitchToMode "normal"; }
bind "m" { SwitchToMode "RenamePane"; PaneNameInput 0; }
}
move {
bind "c" { MovePane; }
}
scroll {
bind "a" { EditScrollback; SwitchToMode "normal"; }
bind "s" { SwitchToMode "entersearch"; SearchInput 0; }
}
search {
bind "k" { Search "Down"; }
bind "j" { Search "Up"; }
}
tmux clear-defaults=true {
}
}
pane_frames false
theme "dracula"
default_layout "compact"
copy_command "@COPY_COMMAND@"
scrollback_editor "@SCROLLBACK_EDITOR@"
themes {
dracula {
fg 248 248 242
bg 40 42 54
black 0 0 0
red 255 85 85
green 80 250 123
yellow 241 250 140
blue 98 114 164
magenta 255 121 198
cyan 139 233 253
white 255 255 255
orange 255 184 108
}
}