-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.kdl
264 lines (234 loc) · 10.8 KB
/
config.kdl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
default_layout "terminal"
// set the theme
theme "catppuccin-mocha"
//theme "gruvbox-dark"
ui {
pane_frames {
rounded_corners true
}
}
keybinds {
// global
unbind "Ctrl b" // unbind default tmux key
unbind "Ctrl q"
unbind "Ctrl h"
unbind "Ctrl j"
unbind "Ctrl k"
unbind "Ctrl l"
normal clear-defaults=true {
// add back some bindings
bind "Ctrl a" { SwitchToMode "Tmux"; }
// bind "Ctrl h" { MoveFocus "Left"; }
// bind "Ctrl l" { MoveFocus "Right"; }
// bind "Ctrl j" { MoveFocus "Down"; }
// bind "Ctrl k" { MoveFocus "Up"; }
bind "Alt h" { MoveFocus "Left"; }
bind "Alt j" { MoveFocus "Down"; }
bind "Alt k" { MoveFocus "Up"; }
bind "Alt l" { MoveFocus "Right"; }
}
tmux clear-defaults=true {
// add my preferred tmux bindings
bind "Ctrl a" { SwitchToMode "Normal"; }
bind "[" { SwitchToMode "Scroll"; }
bind "]" { EditScrollback; SwitchToMode "Normal"; }
// pane
bind "-" "_" { NewPane "Down"; SwitchToMode "Normal"; }
bind "s" "|" "\\" { NewPane "Right"; SwitchToMode "Normal"; }
bind "x" { CloseFocus; SwitchToMode "Normal"; }
bind "z" { ToggleFocusFullscreen; SwitchToMode "Normal"; }
bind "h" { MoveFocus "Left"; }
bind "j" { MoveFocus "Down"; }
bind "k" { MoveFocus "Up"; }
bind "l" { MoveFocus "Right"; }
bind "o" { FocusNextPane; }
// tab
bind "c" { NewTab; SwitchToMode "Normal"; SwitchToMode "RenameTab"; TabNameInput 0; }
bind "r" { SwitchToMode "RenameTab"; TabNameInput 0; }
bind "X" { CloseTab; SwitchToMode "Normal"; }
bind "H" "p" { GoToPreviousTab; }
bind "L" "n" "Tab" { GoToNextTab; }
bind "<" { MoveTab "Left"; }
bind ">" { MoveTab "Right"; }
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"; }
// session
bind "d" { Detach; }
bind "w" {
LaunchOrFocusPlugin "zellij:session-manager" {
floating true
move_to_focused_tab true
};
SwitchToMode "Normal"
}
bind "Ctrl q" { Quit; }
// other
bind "Space" { NextSwapLayout; }
// switch to other modes
bind "Enter" "Esc" { SwitchToMode "Normal"; }
bind "Ctrl p" { SwitchToMode "Pane"; }
bind "Ctrl t" { SwitchToMode "Tab"; }
bind "Ctrl n" { SwitchToMode "Resize"; }
bind "Ctrl s" { SwitchToMode "Scroll"; }
bind "Ctrl o" { SwitchToMode "Session"; }
bind "Ctrl m" { SwitchToMode "Move"; }
bind "Ctrl g" { SwitchToMode "Locked"; }
}
shared_except "tmux" {
bind "Ctrl a" { SwitchToMode "Tmux"; }
}
shared_except "locked" {
/* Put keybindings here if they conflict with Vim or others. */
// bind "Alt z" { SwitchToMode "Locked"; }
//
bind "Alt m" { ToggleFloatingPanes; }
// bind "Alt t" { NewPane "Down"; }
// bind "Alt v" { NewPane "Right"; }
bind "Ctrl h" { MoveFocus "Left"; }
bind "Ctrl j" { MoveFocus "Down"; }
bind "Ctrl k" { MoveFocus "Up"; }
bind "Ctrl l" { MoveFocus "Right"; }
// bind "Ctrl d" { HalfPageScrollDown; }
// bind "Ctrl u" { HalfPageScrollUp; }
//
// bind "Ctrl f" { PageScrollDown; }
// bind "Ctrl b" { PageScrollUp; }
}
}
plugins {
// Good practise: use aliases for plugins instead of direct reference in layout
// -----------------------
// built-in plugins
// -----------------------
tab-bar location="zellij:tab-bar"
status-bar location="zellij:status-bar"
strider location="zellij:strider"
compact-bar location="zellij:compact-bar"
session-manager location="zellij:session-manager"
welcome-screen location="zellij:session-manager" {
welcome_screen true
}
filepicker location="zellij:strider" {
cwd "/"
}
// -----------------------
// extra plugins
// -----------------------
// zjstatus
zjstatus location="file:~/.local/share/zellij/plugins/zjstatus.wasm" {
// -- Gruvbox Dark mode
color_bg0 "#282828" //dark0
color_bg1 "#3c3836" //dark1
color_bg2 "#504945" //dark2
color_bg3 "#665c54" //dark3
color_bg4 "#7c6f64" //dark4
color_fg0 "#fbf1c7" //light0
color_fg1 "#ebdbb2" //light1
color_fg2 "#d5c4a1" //light2
color_fg3 "#bdae93" //light3
color_fg4 "#a89984" //light4
color_red "#fb4934" // bright_red
color_green "#b8bb26" //bright_green
color_yellow "#fabd2f" // bright_yellow
color_blue "#83a598" //bright_blue
color_purple "#d3869b" //bright_purple
color_aqua "#8ec07c" //bright_aqua
color_gray "#a89984" //bright_gray
color_orange "#fe8019" //bright_orange
color_neutral_red "#cc241d" //neutral_red
color_neutral_green "#98971a" //neutral_green
color_neutral_yellow "#d79921" //neutral_yellow
color_neutral_blue "#458588" //neutral_blue
color_neutral_purple "#b16286" //neutral_purple
color_neutral_aqua "#689d6a" //neutral_aqua
color_neutral_gray "#928374" //neutral_gray
color_neutral_orange "#d65d0e" //neatural_orange
// -- Gruvbox Light mode
//color_bg0 "#fbf1c7" //light0
//color_bg1 "#ebdbb2" //light1
//color_bg2 "#d5c4a1" //light2
//color_bg3 "#bdae93" //light3
//color_bg4 "#a89984" //light4
//color_fg0 "#282828" //dark0
//color_fg1 "#3c3836" //dark1
//color_fg2 "#504945" //dark2
//color_fg3 "#665c54" //dark3
//color_fg4 "#7c6f64" //dark4
//color_red "#9d0006" //faded_red
//color_green "#79740e" //faded_green
//color_yellow "#b57614" //faded_yellow
//color_blue "#076678" //faded_blue
//color_purple "#8f3f71" //faded_purple
//color_aqua "#427b58" //faded_aqua
//color_gray "#7c6f64" //faded_gray
//color_orange "#af3a03" //faded_orange
//color_neutral_red "#cc241d" //neutral_red
//color_neutral_green "#98971a" //neutral_green
//color_neutral_yellow "#d79921" //neutral_yellow
//color_neutral_blue "#458588" //neutral_blue
//color_neutral_purple "#b16286" //neutral_purple
//color_neutral_aqua "#689d6a" //neutral_aqua
//color_neutral_orange "#d65d0e" //neatural_orange
//color_neutral_gray "#928374" //neutral_gray
format_left "#[bg=$bg2,fg=$fg3] {session} {mode}#[bg=$bg1]{tabs}"
format_center "{notifications}"
format_right "#[bg=$bg1,fg=$bg2]#[bg=$bg2,fg=$fg4] {command_user}@{command_host} #[bg=$bg2,fg=$fg3]#[bg=$fg3,fg=$bg1] {datetime} "
format_space "#[bg=$bg1,fg=$fg1]"
format_hide_on_overlength "true"
format_precedence "lrc"
border_enabled "false"
border_char "─"
border_format "#[fg=$bg1]{char}"
border_position "top"
hide_frame_for_single_pane "true"
mode_normal "#[bg=$bg3,fg=$bg2]#[bg=$bg3,fg=$fg3,bold] NORMAL#[bg=$bg1,fg=$bg3]"
mode_tmux "#[bg=$green,fg=$bg2]#[bg=$green,fg=$bg0,bold] TMUX#[bg=$bg1,fg=$green]"
mode_locked "#[bg=$red,fg=$bg2]#[bg=$red,fg=$bg0,bold] LOCKED#[bg=$bg1,fg=$red]"
mode_pane "#[bg=$aqua,fg=$bg2]#[bg=$aqua,fg=$bg0,bold] PANE#[bg=$bg1,fg=$aqua]"
mode_tab "#[bg=$aqua,fg=$bg2]#[bg=$aqua,fg=$bg0,bold] TAB#[bg=$bg1,fg=$aqua]"
mode_scroll "#[bg=$blue,fg=$bg2]#[bg=$blue,fg=$bg0,bold] SCROLL#[bg=$bg1,fg=$blue]"
mode_enter_search "#[bg=$blue,fg=$bg2]#[bg=$blue,fg=$bg0,bold] ENT-SEARCH#[bg=$bg1,fg=$blue]"
mode_search "#[bg=$blue,fg=$bg2]#[bg=$blue,fg=$bg0,bold] SEARCH#[bg=$bg1,fg=$blue]"
mode_resize "#[bg=$yellow,fg=$bg2]#[bg=$yellow,fg=$bg0,bold] RESIZE#[bg=$bg1,fg=$yellow]"
mode_rename_tab "#[bg=$yellow,fg=$bg2]#[bg=$yellow,fg=$bg0,bold] RESIZE#[bg=$bg1,fg=$yellow]"
mode_rename_pane "#[bg=$yellow,fg=$bg2]#[bg=$yellow,fg=$bg0,bold] RESIZE#[bg=$bg1,fg=$yellow]"
mode_move "#[bg=$yellow,fg=$bg2]#[bg=$yellow,fg=$bg0,bold] MOVE#[bg=$bg1,fg=$yellow]"
mode_session "#[bg=$purple,fg=$bg2]#[bg=$purple,fg=$bg0,bold] MOVE#[bg=$bg1,fg=$purple]"
mode_prompt "#[bg=$purple,fg=$bg2]#[bg=$purple,fg=$bg0,bold] PROMPT#[bg=$bg1,fg=$purple]"
tab_normal "#[bg=$bg2,fg=$bg1]#[bg=$bg2,fg=$fg1] {index} #[bg=$bg2,fg=$fg1,bold] {name} {floating_indicator}#[bg=$bg1,fg=$bg2]"
tab_normal_fullscreen "#[bg=$bg2,fg=$bg1]#[bg=$bg2,fg=$fg1] {index} #[bg=$bg2,fg=$fg1,bold] {name} {fullscreen_indicator}#[bg=$bg1,fg=$bg2]"
tab_normal_sync "#[bg=$bg2,fg=$bg1]#[bg=$bg2,fg=$fg1] {index} #[bg=$bg2,fg=$fg1,bold] {name} {sync_indicator}#[bg=$bg1,fg=$bg2]"
tab_active "#[bg=$yellow,fg=$bg1]#[bg=$yellow,fg=$bg2] {index} #[bg=$yellow,fg=$bg2,bold] {name} {floating_indicator}#[bg=$bg1,fg=$yellow]"
tab_active_fullscreen "#[bg=$yellow,fg=$bg1]#[bg=$yellow,fg=$bg2] {index} #[bg=$yellow,fg=$bg2,bold] {name} {fullscreen_indicator}#[bg=$bg1,fg=$yellow]"
tab_active_sync "#[bg=$yellow,fg=$bg1]#[bg=$yellow,fg=$bg2] {index} #[bg=$yellow,fg=$bg2,bold] {name} {sync_indicator}#[bg=$bg1,fg=$yellow]"
tab_separator "#[bg=$bg1,fg=$fg1]"
tab_sync_indicator ""
tab_fullscreen_indicator ""
tab_floating_indicator ""
notification_format_unread "#[bg=$orange,fg=$bg1]#[bg=$orange,fg=$bg1] {message} #[bg=$bg1,fg=$orange]"
notification_format_no_notifications ""
notification_show_interval "10"
command_host_command "uname -n"
command_host_format "{stdout}"
command_host_interval "0"
command_host_rendermode "static"
command_user_command "whoami"
command_user_format "{stdout}"
command_user_interval "0"
command_user_rendermode "static"
datetime "{format}"
datetime_format "%Y-%m-%d %H:%M"
datetime_timezone "Europe/Stockholm"
}
// forgot-plugin location="https://github.com/karimould/zellij-forgot/releases/download/0.4.0/zellij_forgot.wasm" {
// "LOAD_ZELLIJ_BINDINGS" "true"
// floating true
// }
}