nix-config/modules/zellij/config.kdl

314 lines
9.6 KiB
Text

keybinds clear-defaults=true {
shared_except "locked" "scroll" {
bind "Esc" { SwitchToMode "Locked"; }
}
normal {
// Modes
bind "p" { SwitchToMode "Pane"; }
bind "r" { SwitchToMode "Resize"; }
bind "m" { SwitchToMode "Move"; }
bind "t" { SwitchToMode "Tab"; }
bind "/" { SwitchToMode "Scroll"; }
// Plugins / Tools
bind "w" {
LaunchOrFocusPlugin "session-manager" {
floating true
move_to_focused_tab true
};
SwitchToMode "Locked";
}
bind "s" {
Run "fish" "-ic" "sessionizer" {
close_on_exit true
floating true
};
SwitchToMode "Locked";
}
// Global keybindings
bind "c" { NewTab; SwitchToMode "Locked"; }
bind "z" { ToggleFocusFullscreen; SwitchToMode "Locked"; }
bind "x" { CloseFocus; SwitchToMode "Locked"; }
bind "-" { NewPane "Down"; SwitchToMode "Locked"; }
bind "|" { NewPane "Right"; SwitchToMode "Locked"; }
bind "h" "Left" { MoveFocus "Left"; SwitchToMode "Locked"; }
bind "l" "Right" { MoveFocus "Right"; SwitchToMode "Locked"; }
bind "j" "Down" { MoveFocus "Down"; SwitchToMode "Locked"; }
bind "k" "Up" { MoveFocus "Up"; SwitchToMode "Locked"; }
bind "1" { GoToTab 1; SwitchToMode "Locked"; }
bind "2" { GoToTab 2; SwitchToMode "Locked"; }
bind "3" { GoToTab 3; SwitchToMode "Locked"; }
bind "4" { GoToTab 4; SwitchToMode "Locked"; }
bind "5" { GoToTab 5; SwitchToMode "Locked"; }
bind "6" { GoToTab 6; SwitchToMode "Locked"; }
bind "7" { GoToTab 7; SwitchToMode "Locked"; }
bind "8" { GoToTab 8; SwitchToMode "Locked"; }
bind "9" { GoToTab 9; SwitchToMode "Locked"; }
}
locked {
bind "Ctrl b" { SwitchToMode "Normal"; }
}
resize {
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"; }
}
move {
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"; }
}
pane {
bind "n" { NewPane; SwitchToMode "Locked"; }
bind "x" { CloseFocus; SwitchToMode "Locked"; }
bind "p" { SwitchFocus; }
bind "f" { TogglePaneEmbedOrFloating; SwitchToMode "Locked"; }
bind "s" { NewPane "stacked"; SwitchToMode "Locked"; }
bind "r" { SwitchToMode "RenamePane"; }
}
tab {
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; }
}
renamepane {
bind "Ctrl c" "Enter" { SwitchToMode "Locked"; }
bind "Esc" { UndoRenamePane; SwitchToMode "Pane"; }
}
renametab {
bind "Ctrl c" "Enter" { SwitchToMode "Locked"; }
bind "Esc" { UndoRenameTab; SwitchToMode "Tab"; }
}
scroll {
bind "e" { EditScrollback; SwitchToMode "Locked"; }
bind "s" { SwitchToMode "EnterSearch"; SearchInput 0; }
bind "Ctrl c" "Esc" { ScrollToBottom; SwitchToMode "Locked"; }
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; }
}
entersearch {
bind "Ctrl c" "Esc" { SwitchToMode "Scroll"; }
bind "Enter" { SwitchToMode "Search"; }
}
search {
bind "Ctrl c" { ScrollToBottom; SwitchToMode "Locked"; }
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"; }
}
tmux { }
}
theme "winterly"
themes {
winterly {
text_unselected {
base 255 255 255
background 15 11 21
emphasis_0 245 194 231
emphasis_1 166 227 161
emphasis_2 137 220 235
emphasis_3 250 179 135
}
text_selected {
base 205 214 244
background 87 36 84
emphasis_0 250 179 135
emphasis_1 137 220 235
emphasis_2 166 227 161
emphasis_3 245 194 231
}
ribbon_selected {
base 15 11 21
background 175 133 234
emphasis_0 252 193 182
emphasis_1 191 138 159
emphasis_2 53 175 191
emphasis_3 197 127 175
}
ribbon_unselected {
base 128 124 159
background 29 32 47
emphasis_0 252 193 182
emphasis_1 191 138 159
emphasis_2 53 175 191
emphasis_3 197 127 175
}
table_title {
base 255 255 255
background 15 11 21
emphasis_0 250 179 135
emphasis_1 137 220 235
emphasis_2 166 227 161
emphasis_3 245 194 231
}
table_cell_selected {
base 205 214 244
background 87 36 84
emphasis_0 250 179 135
emphasis_1 137 220 235
emphasis_2 166 227 161
emphasis_3 245 194 231
}
table_cell_unselected {
base 255 255 255
background 15 11 21
emphasis_0 250 179 135
emphasis_1 137 220 235
emphasis_2 166 227 161
emphasis_3 245 194 231
}
list_selected {
base 205 214 244
background 87 36 84
emphasis_0 250 179 135
emphasis_1 137 220 235
emphasis_2 166 227 161
emphasis_3 245 194 231
}
list_unselected {
base 255 255 255
background 15 11 21
emphasis_0 250 179 135
emphasis_1 137 220 235
emphasis_2 166 227 161
emphasis_3 245 194 231
}
frame_selected {
base 197 127 175
background 0
emphasis_0 0
emphasis_1 0
emphasis_2 0
emphasis_3 0
}
frame_unselected {
base 128 124 159
background 0
emphasis_0 0
emphasis_1 0
emphasis_2 0
emphasis_3 0
}
frame_highlight {
base 197 127 175
background 0
emphasis_0 0
emphasis_1 0
emphasis_2 0
emphasis_3 0
}
exit_code_success {
base 154
background 238
emphasis_0 51
emphasis_1 16
emphasis_2 201
emphasis_3 45
}
exit_code_error {
base 255 106 122
background 0
emphasis_0 0
emphasis_1 0
emphasis_2 0
emphasis_3 0
}
multiplayer_user_colors {
player_1 201
player_2 45
player_3 99
player_4 226
player_5 51
player_6 136
player_7 124
player_8 245
player_9 207
player_10 215
}
}
}
plugins {
about location="zellij:about"
compact-bar location="zellij:compact-bar"
configuration location="zellij:configuration"
filepicker location="zellij:strider" {
cwd "/"
}
plugin-manager location="zellij:plugin-manager"
session-manager location="zellij:session-manager"
status-bar location="zellij:status-bar"
strider location="zellij:strider"
tab-bar location="zellij:tab-bar"
welcome-screen location="zellij:session-manager" {
welcome_screen false
}
}
load_plugins {
}
default_mode "locked"
default_shell "fish"
pane_frames true
scroll_buffer_size 100000
copy_on_select true
attach_to_session true
session_name "default"
session_serialization true
pane_viewport_serialization true
web_server false
show_startup_tips false