From 3df53b333dd78debfa7d1cb1e857cb91449e16eb Mon Sep 17 00:00:00 2001 From: Ava Gaiety W Date: Sat, 21 Jun 2025 18:50:05 -0600 Subject: [PATCH] zellij config --- README.md | 1 + zellij/config.kdl | 140 +++++++++++++++++++++++++++++++++++ zellij/layouts/default.kdl | 6 ++ zellij/themes/catppuccin.kdl | 61 +++++++++++++++ 4 files changed, 208 insertions(+) create mode 100644 zellij/config.kdl create mode 100644 zellij/layouts/default.kdl create mode 100644 zellij/themes/catppuccin.kdl diff --git a/README.md b/README.md index 8571006..ca1fd2d 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ mise install ln -s "$(pwd)/nvim" ~/.config/nvim ln -s "$(pwd)/fish" ~/.config/fish ln -s "$(pwd)/kitty" ~/.config/kitty +ln -s "$(pwd)/zellij" ~/.config/zellij ``` diff --git a/zellij/config.kdl b/zellij/config.kdl new file mode 100644 index 0000000..5835517 --- /dev/null +++ b/zellij/config.kdl @@ -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" diff --git a/zellij/layouts/default.kdl b/zellij/layouts/default.kdl new file mode 100644 index 0000000..04f4595 --- /dev/null +++ b/zellij/layouts/default.kdl @@ -0,0 +1,6 @@ +layout { + pane size=1 borderless=true { + plugin location="zellij:compact-bar" + } + pane +} diff --git a/zellij/themes/catppuccin.kdl b/zellij/themes/catppuccin.kdl new file mode 100644 index 0000000..f87e3bc --- /dev/null +++ b/zellij/themes/catppuccin.kdl @@ -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" + } +} +