zellij config
This commit is contained in:
parent
3922ca642c
commit
3df53b333d
4 changed files with 208 additions and 0 deletions
|
@ -20,6 +20,7 @@ mise install
|
||||||
ln -s "$(pwd)/nvim" ~/.config/nvim
|
ln -s "$(pwd)/nvim" ~/.config/nvim
|
||||||
ln -s "$(pwd)/fish" ~/.config/fish
|
ln -s "$(pwd)/fish" ~/.config/fish
|
||||||
ln -s "$(pwd)/kitty" ~/.config/kitty
|
ln -s "$(pwd)/kitty" ~/.config/kitty
|
||||||
|
ln -s "$(pwd)/zellij" ~/.config/zellij
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
140
zellij/config.kdl
Normal file
140
zellij/config.kdl
Normal file
|
@ -0,0 +1,140 @@
|
||||||
|
simplified_ui true
|
||||||
|
pane_frames false
|
||||||
|
default_layout "default"
|
||||||
|
|
||||||
|
ui {
|
||||||
|
pane_frames {
|
||||||
|
hide_session_name true
|
||||||
|
rounded_corners true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
keybinds {
|
||||||
|
normal {
|
||||||
|
// uncomment this and adjust key if using copy_on_select=false
|
||||||
|
// bind "Alt c" { Copy; }
|
||||||
|
}
|
||||||
|
resize {
|
||||||
|
bind "Ctrl n" { SwitchToMode "Normal"; }
|
||||||
|
bind "h" "Left" { Resize "Increase Left"; }
|
||||||
|
bind "j" "Down" { Resize "Increase Down"; }
|
||||||
|
bind "k" "Up" { Resize "Increase Up"; }
|
||||||
|
bind "l" "Right" { Resize "Increase Right"; }
|
||||||
|
bind "H" { Resize "Decrease Left"; }
|
||||||
|
bind "J" { Resize "Decrease Down"; }
|
||||||
|
bind "K" { Resize "Decrease Up"; }
|
||||||
|
bind "L" { Resize "Decrease Right"; }
|
||||||
|
bind "=" "+" { Resize "Increase"; }
|
||||||
|
bind "-" { Resize "Decrease"; }
|
||||||
|
}
|
||||||
|
pane {
|
||||||
|
bind "Ctrl p" { SwitchToMode "Normal"; }
|
||||||
|
bind "h" "Left" { MoveFocus "Left"; }
|
||||||
|
bind "l" "Right" { MoveFocus "Right"; }
|
||||||
|
bind "j" "Down" { MoveFocus "Down"; }
|
||||||
|
bind "k" "Up" { MoveFocus "Up"; }
|
||||||
|
bind "p" { SwitchFocus; }
|
||||||
|
bind "n" { NewPane; SwitchToMode "Normal"; }
|
||||||
|
bind "d" { NewPane "Down"; SwitchToMode "Normal"; }
|
||||||
|
bind "r" { NewPane "Right"; SwitchToMode "Normal"; }
|
||||||
|
bind "x" { CloseFocus; SwitchToMode "Normal"; }
|
||||||
|
bind "f" { ToggleFocusFullscreen; SwitchToMode "Normal"; }
|
||||||
|
bind "z" { TogglePaneFrames; SwitchToMode "Normal"; }
|
||||||
|
bind "w" { ToggleFloatingPanes; SwitchToMode "Normal"; }
|
||||||
|
bind "e" { TogglePaneEmbedOrFloating; SwitchToMode "Normal"; }
|
||||||
|
bind "c" { SwitchToMode "RenamePane"; PaneNameInput 0;}
|
||||||
|
}
|
||||||
|
move {
|
||||||
|
bind "Ctrl h" { SwitchToMode "Normal"; }
|
||||||
|
bind "n" "Tab" { MovePane; }
|
||||||
|
bind "p" { MovePaneBackwards; }
|
||||||
|
bind "h" "Left" { MovePane "Left"; }
|
||||||
|
bind "j" "Down" { MovePane "Down"; }
|
||||||
|
bind "k" "Up" { MovePane "Up"; }
|
||||||
|
bind "l" "Right" { MovePane "Right"; }
|
||||||
|
}
|
||||||
|
tab {
|
||||||
|
bind "Ctrl t" { SwitchToMode "Normal"; }
|
||||||
|
bind "r" { SwitchToMode "RenameTab"; TabNameInput 0; }
|
||||||
|
bind "h" "Left" "Up" "k" { GoToPreviousTab; }
|
||||||
|
bind "l" "Right" "Down" "j" { GoToNextTab; }
|
||||||
|
bind "n" { NewTab; SwitchToMode "Normal"; }
|
||||||
|
bind "x" { CloseTab; SwitchToMode "Normal"; }
|
||||||
|
bind "s" { ToggleActiveSyncTab; SwitchToMode "Normal"; }
|
||||||
|
bind "b" { BreakPane; SwitchToMode "Normal"; }
|
||||||
|
bind "]" { BreakPaneRight; SwitchToMode "Normal"; }
|
||||||
|
bind "[" { BreakPaneLeft; SwitchToMode "Normal"; }
|
||||||
|
bind "1" { GoToTab 1; SwitchToMode "Normal"; }
|
||||||
|
bind "2" { GoToTab 2; SwitchToMode "Normal"; }
|
||||||
|
bind "3" { GoToTab 3; SwitchToMode "Normal"; }
|
||||||
|
bind "4" { GoToTab 4; SwitchToMode "Normal"; }
|
||||||
|
bind "5" { GoToTab 5; SwitchToMode "Normal"; }
|
||||||
|
bind "6" { GoToTab 6; SwitchToMode "Normal"; }
|
||||||
|
bind "7" { GoToTab 7; SwitchToMode "Normal"; }
|
||||||
|
bind "8" { GoToTab 8; SwitchToMode "Normal"; }
|
||||||
|
bind "9" { GoToTab 9; SwitchToMode "Normal"; }
|
||||||
|
bind "Tab" { ToggleTab; }
|
||||||
|
}
|
||||||
|
scroll {
|
||||||
|
bind "Ctrl s" { SwitchToMode "Normal"; }
|
||||||
|
bind "e" { EditScrollback; SwitchToMode "Normal"; }
|
||||||
|
bind "s" { SwitchToMode "EnterSearch"; SearchInput 0; }
|
||||||
|
bind "Ctrl c" { ScrollToBottom; SwitchToMode "Normal"; }
|
||||||
|
bind "j" "Down" { ScrollDown; }
|
||||||
|
bind "k" "Up" { ScrollUp; }
|
||||||
|
bind "Ctrl f" "PageDown" "Right" "l" { PageScrollDown; }
|
||||||
|
bind "Ctrl b" "PageUp" "Left" "h" { PageScrollUp; }
|
||||||
|
bind "d" { HalfPageScrollDown; }
|
||||||
|
bind "u" { HalfPageScrollUp; }
|
||||||
|
// uncomment this and adjust key if using copy_on_select=false
|
||||||
|
// bind "Alt c" { Copy; }
|
||||||
|
}
|
||||||
|
search {
|
||||||
|
bind "Ctrl s" { SwitchToMode "Normal"; }
|
||||||
|
bind "Ctrl c" { ScrollToBottom; SwitchToMode "Normal"; }
|
||||||
|
bind "j" "Down" { ScrollDown; }
|
||||||
|
bind "k" "Up" { ScrollUp; }
|
||||||
|
bind "Ctrl f" "PageDown" "Right" "l" { PageScrollDown; }
|
||||||
|
bind "Ctrl b" "PageUp" "Left" "h" { PageScrollUp; }
|
||||||
|
bind "d" { HalfPageScrollDown; }
|
||||||
|
bind "u" { HalfPageScrollUp; }
|
||||||
|
bind "n" { Search "down"; }
|
||||||
|
bind "p" { Search "up"; }
|
||||||
|
bind "c" { SearchToggleOption "CaseSensitivity"; }
|
||||||
|
bind "w" { SearchToggleOption "Wrap"; }
|
||||||
|
bind "o" { SearchToggleOption "WholeWord"; }
|
||||||
|
}
|
||||||
|
entersearch {
|
||||||
|
bind "Ctrl c" "Esc" { SwitchToMode "Scroll"; }
|
||||||
|
bind "Enter" { SwitchToMode "Search"; }
|
||||||
|
}
|
||||||
|
renametab {
|
||||||
|
bind "Ctrl c" { SwitchToMode "Normal"; }
|
||||||
|
bind "Esc" { UndoRenameTab; SwitchToMode "Tab"; }
|
||||||
|
}
|
||||||
|
renamepane {
|
||||||
|
bind "Ctrl c" { SwitchToMode "Normal"; }
|
||||||
|
bind "Esc" { UndoRenamePane; SwitchToMode "Pane"; }
|
||||||
|
}
|
||||||
|
session {
|
||||||
|
bind "Ctrl o" { SwitchToMode "Normal"; }
|
||||||
|
bind "Ctrl s" { SwitchToMode "Scroll"; }
|
||||||
|
bind "d" { Detach; }
|
||||||
|
bind "w" {
|
||||||
|
LaunchOrFocusPlugin "zellij:session-manager" {
|
||||||
|
floating true
|
||||||
|
move_to_focused_tab true
|
||||||
|
};
|
||||||
|
SwitchToMode "Normal"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
tab-bar { path "tab-bar"; }
|
||||||
|
status-bar { path "status-bar"; }
|
||||||
|
strider { path "strider"; }
|
||||||
|
compact-bar { path "compact-bar"; }
|
||||||
|
}
|
||||||
|
|
||||||
|
theme "catppuccin-mocha"
|
6
zellij/layouts/default.kdl
Normal file
6
zellij/layouts/default.kdl
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
layout {
|
||||||
|
pane size=1 borderless=true {
|
||||||
|
plugin location="zellij:compact-bar"
|
||||||
|
}
|
||||||
|
pane
|
||||||
|
}
|
61
zellij/themes/catppuccin.kdl
Normal file
61
zellij/themes/catppuccin.kdl
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
// Catppuccin Theme:
|
||||||
|
// https://github.com/catppuccin/catppuccin
|
||||||
|
|
||||||
|
themes {
|
||||||
|
catppuccin-latte {
|
||||||
|
bg "#acb0be" // Surface2
|
||||||
|
fg "#acb0be" // Surface2
|
||||||
|
red "#d20f39"
|
||||||
|
green "#40a02b"
|
||||||
|
blue "#1e66f5"
|
||||||
|
yellow "#df8e1d"
|
||||||
|
magenta "#ea76cb" // Pink
|
||||||
|
orange "#fe640b" // Peach
|
||||||
|
cyan "#04a5e5" // Sky
|
||||||
|
black "#dce0e8" // Crust
|
||||||
|
white "#4c4f69" // Text
|
||||||
|
}
|
||||||
|
|
||||||
|
catppuccin-frappe {
|
||||||
|
bg "#626880" // Surface2
|
||||||
|
fg "#c6d0f5"
|
||||||
|
red "#e78284"
|
||||||
|
green "#a6d189"
|
||||||
|
blue "#8caaee"
|
||||||
|
yellow "#e5c890"
|
||||||
|
magenta "#f4b8e4" // Pink
|
||||||
|
orange "#ef9f76" // Peach
|
||||||
|
cyan "#99d1db" // Sky
|
||||||
|
black "#292c3c" // Mantle
|
||||||
|
white "#c6d0f5"
|
||||||
|
}
|
||||||
|
|
||||||
|
catppuccin-macchiato {
|
||||||
|
bg "#5b6078" // Surface2
|
||||||
|
fg "#cad3f5"
|
||||||
|
red "#ed8796"
|
||||||
|
green "#a6da95"
|
||||||
|
blue "#8aadf4"
|
||||||
|
yellow "#eed49f"
|
||||||
|
magenta "#f5bde6" // Pink
|
||||||
|
orange "#f5a97f" // Peach
|
||||||
|
cyan "#91d7e3" // Sky
|
||||||
|
black "#1e2030" // Mantle
|
||||||
|
white "#cad3f5"
|
||||||
|
}
|
||||||
|
|
||||||
|
catppuccin-mocha {
|
||||||
|
bg "#585b70" // Surface2
|
||||||
|
fg "#cdd6f4"
|
||||||
|
red "#f38ba8"
|
||||||
|
green "#a6e3a1"
|
||||||
|
blue "#89b4fa"
|
||||||
|
yellow "#f9e2af"
|
||||||
|
magenta "#f5c2e7" // Pink
|
||||||
|
orange "#fab387" // Peach
|
||||||
|
cyan "#89dceb" // Sky
|
||||||
|
black "#181825" // Mantle
|
||||||
|
white "#cdd6f4"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue