Skip to content

Commit a554baa

Browse files
add keybinds to configs
1 parent f2211fc commit a554baa

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

example/alt-centered-config.kdl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ keybinds {
3030
bind "Alt k" { MoveFocus "Up"; }
3131
bind "Alt +" { Resize "Increase"; }
3232
bind "Alt -" { Resize "Decrease"; }
33+
bind "Alt \\" { FocusLastPane; }
3334
}
3435
pane clear-defaults=true {
3536
bind "Enter" "Esc" "Space" { SwitchToMode "normal"; }

example/config.kdl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ keybinds {
2222
bind "l" "Right" { MoveFocus "Right"; }
2323
bind "j" "Down" { MoveFocus "Down"; }
2424
bind "k" "Up" { MoveFocus "Up"; }
25+
bind "\\" { FocusLastPane; }
2526
bind "p" { SwitchFocus; }
2627
bind "n" { NewPane; SwitchToMode "Normal"; }
2728
bind "d" { NewPane "Down"; SwitchToMode "Normal"; }
@@ -125,6 +126,7 @@ keybinds {
125126
bind "j" { MoveFocus "Down"; SwitchToMode "Normal"; }
126127
bind "k" { MoveFocus "Up"; SwitchToMode "Normal"; }
127128
bind "o" { FocusNextPane; }
129+
bind ";" { FocusLastPane; }
128130
bind "d" { Detach; }
129131
bind "x" { CloseFocus; SwitchToMode "Normal"; }
130132
}

example/default.kdl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ keybinds {
169169
bind "j" { MoveFocus "Down"; SwitchToMode "Normal"; }
170170
bind "k" { MoveFocus "Up"; SwitchToMode "Normal"; }
171171
bind "o" { FocusNextPane; }
172+
bind ";" { FocusLastPane; }
172173
bind "d" { Detach; }
173174
bind "Space" { NextSwapLayout; }
174175
bind "x" { CloseFocus; SwitchToMode "Normal"; }
@@ -188,6 +189,7 @@ keybinds {
188189
bind "Alt -" { Resize "Decrease"; }
189190
bind "Alt [" { PreviousSwapLayout; }
190191
bind "Alt ]" { NextSwapLayout; }
192+
bind "Alt \\" { FocusLastPane; }
191193
}
192194
shared_except "normal" "locked" {
193195
bind "Enter" "Esc" { SwitchToMode "Normal"; }

0 commit comments

Comments
 (0)