changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra / etc/skel/.config/zellij/config.kdl

changeset 180: 08ecf3acf2ca
parent: d0308ab72ec8
author: Richard Westhaver <ellis@rwest.io>
date: Thu, 01 Feb 2024 15:52:16 -0500
permissions: -rw-r--r--
description: zellij layout init
1 keybinds clear-defaults=true {
2  normal {
3  // uncomment this and adjust key if using copy_on_select=false
4  // bind "Alt c" { Copy; }
5  }
6  locked {
7  bind "Esc" { 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 "Esc" { 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  }
182 }
183 
184 plugins {
185  tab-bar { path "tab-bar"; }
186  status-bar { path "status-bar"; }
187  strider { path "strider"; }
188  compact-bar { path "compact-bar"; }
189  session-manager { path "session-manager"; }
190 }
191 
192 // - detach (Default)
193 // - quit
194 //
195 // on_force_close "quit"
196 
197 // - true
198 // - false (Default)
199 //
200 // simplified_ui true
201 
202 // Default: $SHELL
203 //
204 default_shell "nu"
205 
206 // default_cwd "/stash"
207 
208 // pane_frames true
209 
210 // auto_layout true
211 
212 // session_serialization false
213 
214 // serialize_pane_viewport true
215 
216 // scrollback_lines_to_serialize 10000
217 
218 themes {
219  dracula {
220  fg 248 248 242
221  bg 40 42 54
222  red 255 85 85
223  green 80 250 123
224  yellow 241 250 140
225  blue 98 114 164
226  magenta 255 121 198
227  orange 255 184 108
228  cyan 139 233 253
229  black 0 0 0
230  white 255 255 255
231  }
232 }
233 
234 theme "dracula"
235 
236 // The name of the default layout to load on startup
237 // Default: "default"
238 //
239 default_layout "compact"
240 
241 // default_mode "locked"
242 
243 // mouse_mode false
244 
245 // scroll_buffer_size 10000
246 
247 // copy_command "wl-copy" // wayland
248 
249 // - system (default)
250 // - primary
251 //
252 // copy_clipboard "primary"
253 
254 // copy_on_select false
255 
256 // Default: $EDITOR or $VISUAL
257 //
258 // scrollback_editor "/usr/local/bin/emacs"
259 
260 // mirror_session true
261 
262 // layout_dir "/path/to/my/layout_dir"
263 
264 // theme_dir "/path/to/my/theme_dir"
265 
266 // styled_underlines false