]> git.rmz.io Git - dotfiles.git/blob - zellij/config.kdl
systemd: reset redshift after suspend
[dotfiles.git] / zellij / config.kdl
1 // If you'd like to override the default keybindings completely, be sure to change "keybinds" to "keybinds clear-defaults=true"
2 keybinds {
3 normal {
4 // uncomment this and adjust key if using copy_on_select=false
5 // bind "Alt c" { Copy; }
6 }
7 locked {
8 bind "Ctrl g" { SwitchToMode "Normal"; }
9 }
10 resize {
11 bind "Ctrl n" { SwitchToMode "Normal"; }
12 bind "h" "Left" { Resize "Left"; }
13 bind "j" "Down" { Resize "Down"; }
14 bind "k" "Up" { Resize "Up"; }
15 bind "l" "Right" { Resize "Right"; }
16 bind "=" "+" { Resize "Increase"; }
17 bind "-" { Resize "Decrease"; }
18 }
19 pane {
20 bind "Ctrl p" { SwitchToMode "Normal"; }
21 bind "h" "Left" { MoveFocus "Left"; }
22 bind "l" "Right" { MoveFocus "Right"; }
23 bind "j" "Down" { MoveFocus "Down"; }
24 bind "k" "Up" { MoveFocus "Up"; }
25 bind "p" { SwitchFocus; }
26 bind "n" { NewPane; SwitchToMode "Normal"; }
27 bind "d" { NewPane "Down"; SwitchToMode "Normal"; }
28 bind "r" { NewPane "Right"; SwitchToMode "Normal"; }
29 bind "x" { CloseFocus; SwitchToMode "Normal"; }
30 bind "f" { ToggleFocusFullscreen; SwitchToMode "Normal"; }
31 bind "z" { TogglePaneFrames; SwitchToMode "Normal"; }
32 bind "w" { ToggleFloatingPanes; SwitchToMode "Normal"; }
33 bind "e" { TogglePaneEmbedOrFloating; SwitchToMode "Normal"; }
34 bind "c" { SwitchToMode "RenamePane"; PaneNameInput 0;}
35 }
36 move {
37 bind "Ctrl h" { SwitchToMode "Normal"; }
38 bind "n" "Tab" { MovePane; }
39 bind "h" "Left" { MovePane "Left"; }
40 bind "j" "Down" { MovePane "Down"; }
41 bind "k" "Up" { MovePane "Up"; }
42 bind "l" "Right" { MovePane "Right"; }
43 }
44 tab {
45 bind "Ctrl t" { SwitchToMode "Normal"; }
46 bind "r" { SwitchToMode "RenameTab"; TabNameInput 0; }
47 bind "h" "Left" "Up" "k" { GoToPreviousTab; }
48 bind "l" "Right" "Down" "j" { GoToNextTab; }
49 bind "n" { NewTab; SwitchToMode "Normal"; }
50 bind "x" { CloseTab; SwitchToMode "Normal"; }
51 bind "s" { ToggleActiveSyncTab; SwitchToMode "Normal"; }
52 bind "1" { GoToTab 1; SwitchToMode "Normal"; }
53 bind "2" { GoToTab 2; SwitchToMode "Normal"; }
54 bind "3" { GoToTab 3; SwitchToMode "Normal"; }
55 bind "4" { GoToTab 4; SwitchToMode "Normal"; }
56 bind "5" { GoToTab 5; SwitchToMode "Normal"; }
57 bind "6" { GoToTab 6; SwitchToMode "Normal"; }
58 bind "7" { GoToTab 7; SwitchToMode "Normal"; }
59 bind "8" { GoToTab 8; SwitchToMode "Normal"; }
60 bind "9" { GoToTab 9; SwitchToMode "Normal"; }
61 bind "Tab" { ToggleTab; }
62 }
63 scroll {
64 bind "Ctrl s" { SwitchToMode "Normal"; }
65 bind "e" { EditScrollback; SwitchToMode "Normal"; }
66 bind "s" { SwitchToMode "EnterSearch"; SearchInput 0; }
67 bind "Ctrl c" { ScrollToBottom; SwitchToMode "Normal"; }
68 bind "j" "Down" { ScrollDown; }
69 bind "k" "Up" { ScrollUp; }
70 bind "Ctrl f" "PageDown" "Right" "l" { PageScrollDown; }
71 bind "Ctrl b" "PageUp" "Left" "h" { PageScrollUp; }
72 bind "d" { HalfPageScrollDown; }
73 bind "u" { HalfPageScrollUp; }
74 // uncomment this and adjust key if using copy_on_select=false
75 // bind "Alt c" { Copy; }
76 }
77 search {
78 bind "Ctrl s" { SwitchToMode "Normal"; }
79 bind "Ctrl c" { ScrollToBottom; SwitchToMode "Normal"; }
80 bind "j" "Down" { ScrollDown; }
81 bind "k" "Up" { ScrollUp; }
82 bind "Ctrl f" "PageDown" "Right" "l" { PageScrollDown; }
83 bind "Ctrl b" "PageUp" "Left" "h" { PageScrollUp; }
84 bind "d" { HalfPageScrollDown; }
85 bind "u" { HalfPageScrollUp; }
86 bind "n" { Search "down"; }
87 bind "p" { Search "up"; }
88 bind "c" { SearchToggleOption "CaseSensitivity"; }
89 bind "w" { SearchToggleOption "Wrap"; }
90 bind "o" { SearchToggleOption "WholeWord"; }
91 }
92 entersearch {
93 bind "Ctrl c" "Esc" { SwitchToMode "Scroll"; }
94 bind "Enter" { SwitchToMode "Search"; }
95 }
96 renametab {
97 bind "Ctrl c" { SwitchToMode "Normal"; }
98 bind "Esc" { UndoRenameTab; SwitchToMode "Tab"; }
99 }
100 renamepane {
101 bind "Ctrl c" { SwitchToMode "Normal"; }
102 bind "Esc" { UndoRenamePane; SwitchToMode "Pane"; }
103 }
104 session {
105 bind "Ctrl o" { SwitchToMode "Normal"; }
106 bind "Ctrl s" { SwitchToMode "Scroll"; }
107 bind "d" { Detach; }
108 }
109 tmux {
110 bind "[" { SwitchToMode "Scroll"; }
111 bind "Ctrl b" { Write 2; SwitchToMode "Normal"; }
112 bind "\"" { NewPane "Down"; SwitchToMode "Normal"; }
113 bind "%" { NewPane "Right"; SwitchToMode "Normal"; }
114 bind "z" { ToggleFocusFullscreen; SwitchToMode "Normal"; }
115 bind "c" { NewTab; SwitchToMode "Normal"; }
116 bind "," { SwitchToMode "RenameTab"; }
117 bind "p" { GoToPreviousTab; SwitchToMode "Normal"; }
118 bind "n" { GoToNextTab; SwitchToMode "Normal"; }
119 bind "Left" { MoveFocus "Left"; SwitchToMode "Normal"; }
120 bind "Right" { MoveFocus "Right"; SwitchToMode "Normal"; }
121 bind "Down" { MoveFocus "Down"; SwitchToMode "Normal"; }
122 bind "Up" { MoveFocus "Up"; SwitchToMode "Normal"; }
123 bind "h" { MoveFocus "Left"; SwitchToMode "Normal"; }
124 bind "l" { MoveFocus "Right"; SwitchToMode "Normal"; }
125 bind "j" { MoveFocus "Down"; SwitchToMode "Normal"; }
126 bind "k" { MoveFocus "Up"; SwitchToMode "Normal"; }
127 bind "o" { FocusNextPane; }
128 bind "d" { Detach; }
129 }
130 shared_except "locked" {
131 bind "Ctrl g" { SwitchToMode "Locked"; }
132 bind "Ctrl q" { Quit; }
133 bind "Alt n" { NewPane; }
134 bind "Alt h" "Alt Left" { MoveFocusOrTab "Left"; }
135 bind "Alt l" "Alt Right" { MoveFocusOrTab "Right"; }
136 bind "Alt j" "Alt Down" { MoveFocus "Down"; }
137 bind "Alt k" "Alt Up" { MoveFocus "Up"; }
138 bind "Alt =" "Alt +" { Resize "Increase"; }
139 bind "Alt -" { Resize "Decrease"; }
140 }
141 shared_except "normal" "locked" {
142 bind "Enter" "Space" "Esc" { SwitchToMode "Normal"; }
143 }
144 shared_except "pane" "locked" {
145 bind "Ctrl p" { SwitchToMode "Pane"; }
146 }
147 shared_except "resize" "locked" {
148 bind "Ctrl n" { SwitchToMode "Resize"; }
149 }
150 shared_except "scroll" "locked" {
151 bind "Ctrl s" { SwitchToMode "Scroll"; }
152 }
153 shared_except "session" "locked" {
154 bind "Ctrl o" { SwitchToMode "Session"; }
155 }
156 shared_except "tab" "locked" {
157 bind "Ctrl t" { SwitchToMode "Tab"; }
158 }
159 shared_except "move" "locked" {
160 bind "Ctrl h" { SwitchToMode "Move"; }
161 }
162 shared_except "tmux" "locked" {
163 bind "Ctrl b" { SwitchToMode "Tmux"; }
164 }
165 }
166
167 plugins {
168 tab-bar { path "tab-bar"; }
169 status-bar { path "status-bar"; }
170 strider { path "strider"; }
171 compact-bar { path "compact-bar"; }
172 }
173
174 // Choose what to do when zellij receives SIGTERM, SIGINT, SIGQUIT or SIGHUP
175 // eg. when terminal window with an active zellij session is closed
176 // Options:
177 // - detach (Default)
178 // - quit
179 //
180 // on_force_close "quit"
181
182 // Send a request for a simplified ui (without arrow fonts) to plugins
183 // Options:
184 // - true
185 // - false (Default)
186 //
187 // simplified_ui true
188
189 // Choose the path to the default shell that zellij will use for opening new panes
190 // Default: $SHELL
191 //
192 // default_shell "fish"
193
194 // Toggle between having pane frames around the panes
195 // Options:
196 // - true (default)
197 // - false
198 //
199 // pane_frames true
200
201 // Define color themes for Zellij
202 // For more examples, see: https://github.com/zellij-org/zellij/tree/main/example/themes
203 // Once these themes are defined, one of them should to be selected in the "theme" section of this file
204 //
205 // themes {
206 // dracula {
207 // fg 248 248 242
208 // bg 40 42 54
209 // red 255 85 85
210 // green 80 250 123
211 // yellow 241 250 140
212 // blue 98 114 164
213 // magenta 255 121 198
214 // orange 255 184 108
215 // cyan 139 233 253
216 // black 0 0 0
217 // white 255 255 255
218 // }
219 // }
220
221 // Choose the theme that is specified in the themes section.
222 // Default: default
223 //
224 // theme "default"
225
226 // The name of the default layout to load on startup
227 // Default: "default"
228 //
229 // default_layout "compact"
230
231 // Choose the mode that zellij uses when starting up.
232 // Default: normal
233 //
234 // default_mode "locked"
235
236 // Toggle enabling the mouse mode.
237 // On certain configurations, or terminals this could
238 // potentially interfere with copying text.
239 // Options:
240 // - true (default)
241 // - false
242 //
243 // mouse_mode false
244
245 // Configure the scroll back buffer size
246 // This is the number of lines zellij stores for each pane in the scroll back
247 // buffer. Excess number of lines are discarded in a FIFO fashion.
248 // Valid values: positive integers
249 // Default value: 10000
250 //
251 // scroll_buffer_size 10000
252
253 // Provide a command to execute when copying text. The text will be piped to
254 // the stdin of the program to perform the copy. This can be used with
255 // terminal emulators which do not support the OSC 52 ANSI control sequence
256 // that will be used by default if this option is not set.
257 // Examples:
258 //
259 // copy_command "xclip -selection clipboard" // x11
260 // copy_command "wl-copy" // wayland
261 // copy_command "pbcopy" // osx
262
263 // Choose the destination for copied text
264 // Allows using the primary selection buffer (on x11/wayland) instead of the system clipboard.
265 // Does not apply when using copy_command.
266 // Options:
267 // - system (default)
268 // - primary
269 //
270 // copy_clipboard "primary"
271
272 // Enable or disable automatic copy (and clear) of selection when releasing mouse
273 // Default: true
274 //
275 // copy_on_select false
276
277 // Path to the default editor to use to edit pane scrollbuffer
278 // Default: $EDITOR or $VISUAL
279 //
280 // scrollback_editor "/usr/bin/vim"
281
282 // When attaching to an existing session with other users,
283 // should the session be mirrored (true)
284 // or should each user have their own cursor (false)
285 // Default: false
286 //
287 // mirror_session true
288
289 // The folder in which Zellij will look for layouts
290 //
291 // layout_dir "/path/to/my/layout_dir"
292
293 // The folder in which Zellij will look for themes
294 //
295 // theme_dir "/path/to/my/theme_dir"