diff options
| author | phajw <dscr@duck.com> | 2024-04-26 23:16:26 +0200 |
|---|---|---|
| committer | phajw <dscr@duck.com> | 2024-04-26 23:16:26 +0200 |
| commit | 635f4615db493167907e905ff95b8bf7264bc56a (patch) | |
| tree | 716ad50567bc4c44d0ec4b0e24fab0ed34e72c49 /zellij/config.kdl | |
| parent | 75a329884c53f310efb8349ccb1593d7bce705f1 (diff) | |
| parent | 5b6cd922a0cdefc95aa98b32e13cf67f7a8df261 (diff) | |
| download | dotfiles-635f4615db493167907e905ff95b8bf7264bc56a.tar.gz dotfiles-635f4615db493167907e905ff95b8bf7264bc56a.zip | |
Resolve
Diffstat (limited to 'zellij/config.kdl')
| -rw-r--r-- | zellij/config.kdl | 220 |
1 files changed, 220 insertions, 0 deletions
diff --git a/zellij/config.kdl b/zellij/config.kdl new file mode 100644 index 0000000..dda30b8 --- /dev/null +++ b/zellij/config.kdl | |||
| @@ -0,0 +1,220 @@ | |||
| 1 | keybinds { | ||
| 2 | normal { | ||
| 3 | // uncomment this and adjust key if using copy_on_select=false | ||
| 4 | // bind "Alt c" { Copy; } | ||
| 5 | } | ||
| 6 | locked { | ||
| 7 | bind "Ctrl g" { SwitchToMode "Normal"; } | ||
| 8 | } | ||
| 9 | resize { | ||
| 10 | bind "Ctrl n" { SwitchToMode "Normal"; } | ||
| 11 | bind "h" "Left" { Resize "Increase Left"; } | ||
| 12 | bind "j" "Down" { Resize "Increase Down"; } | ||
| 13 | bind "k" "Up" { Resize "Increase Up"; } | ||
| 14 | bind "l" "Right" { Resize "Increase Right"; } | ||
| 15 | bind "H" { Resize "Decrease Left"; } | ||
| 16 | bind "J" { Resize "Decrease Down"; } | ||
| 17 | bind "K" { Resize "Decrease Up"; } | ||
| 18 | bind "L" { Resize "Decrease Right"; } | ||
| 19 | bind "=" "+" { Resize "Increase"; } | ||
| 20 | bind "-" { Resize "Decrease"; } | ||
| 21 | } | ||
| 22 | pane { | ||
| 23 | bind "Ctrl p" { SwitchToMode "Normal"; } | ||
| 24 | bind "h" "Left" { MoveFocus "Left"; } | ||
| 25 | bind "l" "Right" { MoveFocus "Right"; } | ||
| 26 | bind "j" "Down" { MoveFocus "Down"; } | ||
| 27 | bind "k" "Up" { MoveFocus "Up"; } | ||
| 28 | bind "p" { SwitchFocus; } | ||
| 29 | bind "n" { NewPane; SwitchToMode "Normal"; } | ||
| 30 | bind "d" { NewPane "Down"; SwitchToMode "Normal"; } | ||
| 31 | bind "r" { NewPane "Right"; SwitchToMode "Normal"; } | ||
| 32 | bind "x" { CloseFocus; SwitchToMode "Normal"; } | ||
| 33 | bind "f" { ToggleFocusFullscreen; SwitchToMode "Normal"; } | ||
| 34 | bind "z" { TogglePaneFrames; SwitchToMode "Normal"; } | ||
| 35 | bind "w" { ToggleFloatingPanes; SwitchToMode "Normal"; } | ||
| 36 | bind "e" { TogglePaneEmbedOrFloating; SwitchToMode "Normal"; } | ||
| 37 | bind "c" { SwitchToMode "RenamePane"; PaneNameInput 0;} | ||
| 38 | } | ||
| 39 | move { | ||
| 40 | bind "Ctrl h" { SwitchToMode "Normal"; } | ||
| 41 | bind "n" "Tab" { MovePane; } | ||
| 42 | bind "p" { MovePaneBackwards; } | ||
| 43 | bind "h" "Left" { MovePane "Left"; } | ||
| 44 | bind "j" "Down" { MovePane "Down"; } | ||
| 45 | bind "k" "Up" { MovePane "Up"; } | ||
| 46 | bind "l" "Right" { MovePane "Right"; } | ||
| 47 | } | ||
| 48 | tab { | ||
| 49 | bind "Ctrl t" { SwitchToMode "Normal"; } | ||
| 50 | bind "r" { SwitchToMode "RenameTab"; TabNameInput 0; } | ||
| 51 | bind "h" "Left" "Up" "k" { GoToPreviousTab; } | ||
| 52 | bind "l" "Right" "Down" "j" { GoToNextTab; } | ||
| 53 | bind "n" { NewTab; SwitchToMode "Normal"; } | ||
| 54 | bind "x" { CloseTab; SwitchToMode "Normal"; } | ||
| 55 | bind "s" { ToggleActiveSyncTab; SwitchToMode "Normal"; } | ||
| 56 | bind "b" { BreakPane; SwitchToMode "Normal"; } | ||
| 57 | bind "]" { BreakPaneRight; SwitchToMode "Normal"; } | ||
| 58 | bind "[" { BreakPaneLeft; SwitchToMode "Normal"; } | ||
| 59 | bind "1" { GoToTab 1; SwitchToMode "Normal"; } | ||
| 60 | bind "2" { GoToTab 2; SwitchToMode "Normal"; } | ||
| 61 | bind "3" { GoToTab 3; SwitchToMode "Normal"; } | ||
| 62 | bind "4" { GoToTab 4; SwitchToMode "Normal"; } | ||
| 63 | bind "5" { GoToTab 5; SwitchToMode "Normal"; } | ||
| 64 | bind "6" { GoToTab 6; SwitchToMode "Normal"; } | ||
| 65 | bind "7" { GoToTab 7; SwitchToMode "Normal"; } | ||
| 66 | bind "8" { GoToTab 8; SwitchToMode "Normal"; } | ||
| 67 | bind "9" { GoToTab 9; SwitchToMode "Normal"; } | ||
| 68 | bind "Tab" { ToggleTab; } | ||
| 69 | } | ||
| 70 | scroll { | ||
| 71 | bind "Ctrl s" { SwitchToMode "Normal"; } | ||
| 72 | bind "e" { EditScrollback; SwitchToMode "Normal"; } | ||
| 73 | bind "s" { SwitchToMode "EnterSearch"; SearchInput 0; } | ||
| 74 | bind "Ctrl c" { ScrollToBottom; SwitchToMode "Normal"; } | ||
| 75 | bind "j" "Down" { ScrollDown; } | ||
| 76 | bind "k" "Up" { ScrollUp; } | ||
| 77 | bind "Ctrl f" "PageDown" "Right" "l" { PageScrollDown; } | ||
| 78 | bind "Ctrl b" "PageUp" "Left" "h" { PageScrollUp; } | ||
| 79 | bind "d" { HalfPageScrollDown; } | ||
| 80 | bind "u" { HalfPageScrollUp; } | ||
| 81 | // uncomment this and adjust key if using copy_on_select=false | ||
| 82 | // bind "Alt c" { Copy; } | ||
| 83 | } | ||
| 84 | search { | ||
| 85 | bind "Ctrl s" { SwitchToMode "Normal"; } | ||
| 86 | bind "Ctrl c" { ScrollToBottom; SwitchToMode "Normal"; } | ||
| 87 | bind "j" "Down" { ScrollDown; } | ||
| 88 | bind "k" "Up" { ScrollUp; } | ||
| 89 | bind "Ctrl f" "PageDown" "Right" "l" { PageScrollDown; } | ||
| 90 | bind "Ctrl b" "PageUp" "Left" "h" { PageScrollUp; } | ||
| 91 | bind "d" { HalfPageScrollDown; } | ||
| 92 | bind "u" { HalfPageScrollUp; } | ||
| 93 | bind "n" { Search "down"; } | ||
| 94 | bind "p" { Search "up"; } | ||
| 95 | bind "c" { SearchToggleOption "CaseSensitivity"; } | ||
| 96 | bind "w" { SearchToggleOption "Wrap"; } | ||
| 97 | bind "o" { SearchToggleOption "WholeWord"; } | ||
| 98 | } | ||
| 99 | entersearch { | ||
| 100 | bind "Ctrl c" "Esc" { SwitchToMode "Scroll"; } | ||
| 101 | bind "Enter" { SwitchToMode "Search"; } | ||
| 102 | } | ||
| 103 | renametab { | ||
| 104 | bind "Ctrl c" { SwitchToMode "Normal"; } | ||
| 105 | bind "Esc" { UndoRenameTab; SwitchToMode "Tab"; } | ||
| 106 | } | ||
| 107 | renamepane { | ||
| 108 | bind "Ctrl c" { SwitchToMode "Normal"; } | ||
| 109 | bind "Esc" { UndoRenamePane; SwitchToMode "Pane"; } | ||
| 110 | } | ||
| 111 | session { | ||
| 112 | bind "Ctrl o" { SwitchToMode "Normal"; } | ||
| 113 | bind "Ctrl s" { SwitchToMode "Scroll"; } | ||
| 114 | bind "d" { Detach; } | ||
| 115 | bind "w" { | ||
| 116 | LaunchOrFocusPlugin "zellij:session-manager" { | ||
| 117 | floating true | ||
| 118 | move_to_focused_tab true | ||
| 119 | }; | ||
| 120 | SwitchToMode "Normal" | ||
| 121 | } | ||
| 122 | } | ||
| 123 | tmux { | ||
| 124 | bind "[" { SwitchToMode "Scroll"; } | ||
| 125 | bind "Ctrl b" { Write 2; SwitchToMode "Normal"; } | ||
| 126 | bind "\"" { NewPane "Down"; SwitchToMode "Normal"; } | ||
| 127 | bind "%" { NewPane "Right"; SwitchToMode "Normal"; } | ||
| 128 | bind "z" { ToggleFocusFullscreen; SwitchToMode "Normal"; } | ||
| 129 | bind "c" { NewTab; SwitchToMode "Normal"; } | ||
| 130 | bind "," { SwitchToMode "RenameTab"; } | ||
| 131 | bind "p" { GoToPreviousTab; SwitchToMode "Normal"; } | ||
| 132 | bind "n" { GoToNextTab; SwitchToMode "Normal"; } | ||
| 133 | bind "Left" { MoveFocus "Left"; SwitchToMode "Normal"; } | ||
| 134 | bind "Right" { MoveFocus "Right"; SwitchToMode "Normal"; } | ||
| 135 | bind "Down" { MoveFocus "Down"; SwitchToMode "Normal"; } | ||
| 136 | bind "Up" { MoveFocus "Up"; SwitchToMode "Normal"; } | ||
| 137 | bind "h" { MoveFocus "Left"; SwitchToMode "Normal"; } | ||
| 138 | bind "l" { MoveFocus "Right"; SwitchToMode "Normal"; } | ||
| 139 | bind "j" { MoveFocus "Down"; SwitchToMode "Normal"; } | ||
| 140 | bind "k" { MoveFocus "Up"; SwitchToMode "Normal"; } | ||
| 141 | bind "o" { FocusNextPane; } | ||
| 142 | bind "d" { Detach; } | ||
| 143 | bind "Space" { NextSwapLayout; } | ||
| 144 | bind "x" { CloseFocus; SwitchToMode "Normal"; } | ||
| 145 | } | ||
| 146 | shared_except "locked" { | ||
| 147 | bind "Ctrl g" { SwitchToMode "Locked"; } | ||
| 148 | bind "Ctrl q" { Quit; } | ||
| 149 | bind "Alt n" { NewPane; } | ||
| 150 | bind "Alt h" "Alt Left" { MoveFocusOrTab "Left"; } | ||
| 151 | bind "Alt l" "Alt Right" { MoveFocusOrTab "Right"; } | ||
| 152 | bind "Alt j" "Alt Down" { MoveFocus "Down"; } | ||
| 153 | bind "Alt k" "Alt Up" { MoveFocus "Up"; } | ||
| 154 | bind "Alt =" "Alt +" { Resize "Increase"; } | ||
| 155 | bind "Alt -" { Resize "Decrease"; } | ||
| 156 | bind "Alt [" { PreviousSwapLayout; } | ||
| 157 | bind "Alt ]" { NextSwapLayout; } | ||
| 158 | } | ||
| 159 | shared_except "normal" "locked" { | ||
| 160 | bind "Enter" "Esc" { SwitchToMode "Normal"; } | ||
| 161 | } | ||
| 162 | shared_except "pane" "locked" { | ||
| 163 | bind "Ctrl p" { SwitchToMode "Pane"; } | ||
| 164 | } | ||
| 165 | shared_except "resize" "locked" { | ||
| 166 | bind "Ctrl n" { SwitchToMode "Resize"; } | ||
| 167 | } | ||
| 168 | shared_except "scroll" "locked" { | ||
| 169 | bind "Ctrl s" { SwitchToMode "Scroll"; } | ||
| 170 | } | ||
| 171 | shared_except "session" "locked" { | ||
| 172 | bind "Ctrl o" { SwitchToMode "Session"; } | ||
| 173 | } | ||
| 174 | shared_except "tab" "locked" { | ||
| 175 | bind "Ctrl t" { SwitchToMode "Tab"; } | ||
| 176 | } | ||
| 177 | shared_except "move" "locked" { | ||
| 178 | bind "Ctrl h" { SwitchToMode "Move"; } | ||
| 179 | } | ||
| 180 | shared_except "tmux" "locked" { | ||
| 181 | bind "Ctrl b" { SwitchToMode "Tmux"; } | ||
| 182 | } | ||
| 183 | } | ||
| 184 | |||
| 185 | plugins { | ||
| 186 | tab-bar { path "tab-bar"; } | ||
| 187 | status-bar { path "status-bar"; } | ||
| 188 | strider { path "strider"; } | ||
| 189 | compact-bar { path "compact-bar"; } | ||
| 190 | session-manager { path "session-manager"; } | ||
| 191 | } | ||
| 192 | |||
| 193 | simplified_ui true | ||
| 194 | default_shell "zsh" | ||
| 195 | |||
| 196 | themes { | ||
| 197 | dracula { | ||
| 198 | fg 248 248 242 | ||
| 199 | bg 40 42 54 | ||
| 200 | black 0 0 0 | ||
| 201 | red 255 85 85 | ||
| 202 | green 80 250 123 | ||
| 203 | yellow 241 250 140 | ||
| 204 | blue 98 114 164 | ||
| 205 | magenta 255 121 198 | ||
| 206 | cyan 139 233 253 | ||
| 207 | white 255 255 255 | ||
| 208 | orange 255 184 108 | ||
| 209 | } | ||
| 210 | } | ||
| 211 | |||
| 212 | theme "dracula" | ||
| 213 | default_layout "compact" | ||
| 214 | |||
| 215 | mouse_mode true | ||
| 216 | ui { | ||
| 217 | pane_frames { | ||
| 218 | hide_session_name true | ||
| 219 | } | ||
| 220 | } | ||
