mirror of
https://codeberg.org/Mo8it/dotfiles.git
synced 2024-10-17 20:52:40 +00:00
Use swap layouts
This commit is contained in:
parent
8d512dc456
commit
2402591835
2 changed files with 32 additions and 13 deletions
|
@ -1,18 +1,16 @@
|
|||
default_layout "compact"
|
||||
|
||||
scroll_buffer_size 10000
|
||||
|
||||
copy_on_select true
|
||||
|
||||
default_shell "/usr/bin/fish"
|
||||
scrollback_editor "/home/mo/bin/nvim/bin/nvim"
|
||||
scrollback_editor "/home/mo/.cargo/bin/hx"
|
||||
|
||||
keybinds clear-defaults=true {
|
||||
normal {
|
||||
bind "Alt l" { NextSwapLayout; }
|
||||
bind "Alt L" { SwitchToMode "locked"; }
|
||||
bind "Alt p" { SwitchToMode "pane"; }
|
||||
bind "Alt r" { SwitchToMode "resize"; }
|
||||
bind "Alt b" { SwitchToMode "tab"; }
|
||||
bind "Alt s" { SwitchToMode "scroll"; }
|
||||
bind "Alt m" { SwitchToMode "move"; }
|
||||
bind "Alt n" { NewPane; }
|
||||
|
@ -29,7 +27,7 @@ keybinds clear-defaults=true {
|
|||
bind "Alt L" { SwitchToMode "normal"; }
|
||||
}
|
||||
pane {
|
||||
bind "q" "Esc" { SwitchToMode "normal"; }
|
||||
bind "Esc" { SwitchToMode "normal"; }
|
||||
bind "h" { MoveFocus "Left"; }
|
||||
bind "l" { MoveFocus "Right"; }
|
||||
bind "j" { MoveFocus "Down"; }
|
||||
|
@ -41,27 +39,22 @@ keybinds clear-defaults=true {
|
|||
bind "w" { ToggleFloatingPanes; SwitchToMode "normal"; }
|
||||
bind "e" { TogglePaneEmbedOrFloating; SwitchToMode "normal"; }
|
||||
}
|
||||
tab {
|
||||
bind "q" "Esc" { SwitchToMode "normal"; }
|
||||
bind "x" { CloseTab; SwitchToMode "normal"; }
|
||||
bind "s" { ToggleActiveSyncTab; SwitchToMode "normal"; }
|
||||
}
|
||||
resize {
|
||||
bind "q" "Esc" { SwitchToMode "normal"; }
|
||||
bind "Esc" { SwitchToMode "normal"; }
|
||||
bind "h" { Resize "Left"; }
|
||||
bind "j" { Resize "Down"; }
|
||||
bind "k" { Resize "Up"; }
|
||||
bind "l" { Resize "Right"; }
|
||||
}
|
||||
move {
|
||||
bind "q" "Esc" { SwitchToMode "normal"; }
|
||||
bind "Esc" { SwitchToMode "normal"; }
|
||||
bind "h" { MovePane "Left"; }
|
||||
bind "j" { MovePane "Down"; }
|
||||
bind "k" { MovePane "Up"; }
|
||||
bind "l" { MovePane "Right"; }
|
||||
}
|
||||
scroll {
|
||||
bind "q" "Esc" { SwitchToMode "normal"; }
|
||||
bind "Esc" { SwitchToMode "normal"; }
|
||||
bind "e" { EditScrollback; SwitchToMode "normal"; }
|
||||
bind "j" { ScrollDown; }
|
||||
bind "k" { ScrollUp; }
|
||||
|
|
26
.config/zellij/layouts/default.kdl
Normal file
26
.config/zellij/layouts/default.kdl
Normal file
|
@ -0,0 +1,26 @@
|
|||
layout {
|
||||
default_tab_template {
|
||||
children
|
||||
pane size=1 borderless=true {
|
||||
plugin location="zellij:compact-bar"
|
||||
}
|
||||
}
|
||||
|
||||
swap_tiled_layout name="vertical" {
|
||||
tab max_panes=6 {
|
||||
pane split_direction="vertical" {
|
||||
pane
|
||||
pane { children; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
swap_tiled_layout name="stacked" {
|
||||
tab {
|
||||
pane split_direction="vertical" {
|
||||
pane
|
||||
pane stacked=true { children; }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue