aboutsummaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authorDawidPietrykowski <53954695+DawidPietrykowski@users.noreply.github.com>2026-06-25 18:12:51 +0200
committerGitHub <noreply@github.com>2026-06-25 18:12:51 +0200
commitebd731b0ff12737a6e2160a255280534ef3991bd (patch)
tree4313963a269205391aa519fd090ea1de2b7cc4af /example
parenttests: add more integration tests (#5308) (diff)
downloadsl0ppij-ebd731b0ff12737a6e2160a255280534ef3991bd.tar.gz
sl0ppij-ebd731b0ff12737a6e2160a255280534ef3991bd.tar.xz
sl0ppij-ebd731b0ff12737a6e2160a255280534ef3991bd.zip
feat(panes): `FocusLastPane` action (#4241)
* feat(panes): focus last pane (#4142) * add tests * add client id parameter to `add_floating_pane` * add action for floating panes * add tests for floating panes * add keybinds to configs * rebase fixes * simplify focus logic when adding stacked pane * formatting fix * formatting fix 2 * fix: make sure expanding pane always focuses it for all clients in stack * add pr * fix rebase --------- Co-authored-by: Aram Drevekenin <aram@poor.dev>
Diffstat (limited to 'example')
-rw-r--r--example/alt-centered-config.kdl1
-rw-r--r--example/config.kdl2
-rw-r--r--example/default.kdl2
3 files changed, 5 insertions, 0 deletions
diff --git a/example/alt-centered-config.kdl b/example/alt-centered-config.kdl
index 26a105cb..b9803880 100644
--- a/example/alt-centered-config.kdl
+++ b/example/alt-centered-config.kdl
@@ -30,6 +30,7 @@ keybinds {
bind "Alt k" { MoveFocus "Up"; }
bind "Alt +" { Resize "Increase"; }
bind "Alt -" { Resize "Decrease"; }
+ bind "Alt \\" { FocusLastPane; }
}
pane clear-defaults=true {
bind "Enter" "Esc" "Space" { SwitchToMode "normal"; }
diff --git a/example/config.kdl b/example/config.kdl
index 44f56a8f..cbfb7a63 100644
--- a/example/config.kdl
+++ b/example/config.kdl
@@ -22,6 +22,7 @@ keybinds {
bind "l" "Right" { MoveFocus "Right"; }
bind "j" "Down" { MoveFocus "Down"; }
bind "k" "Up" { MoveFocus "Up"; }
+ bind "\\" { FocusLastPane; }
bind "p" { SwitchFocus; }
bind "n" { NewPane; SwitchToMode "Normal"; }
bind "d" { NewPane "Down"; SwitchToMode "Normal"; }
@@ -125,6 +126,7 @@ keybinds {
bind "j" { MoveFocus "Down"; SwitchToMode "Normal"; }
bind "k" { MoveFocus "Up"; SwitchToMode "Normal"; }
bind "o" { FocusNextPane; }
+ bind ";" { FocusLastPane; }
bind "d" { Detach; }
bind "x" { CloseFocus; SwitchToMode "Normal"; }
}
diff --git a/example/default.kdl b/example/default.kdl
index 61aa4bb8..f1d9c50b 100644
--- a/example/default.kdl
+++ b/example/default.kdl
@@ -177,6 +177,7 @@ keybinds {
bind "j" { MoveFocus "Down"; SwitchToMode "Normal"; }
bind "k" { MoveFocus "Up"; SwitchToMode "Normal"; }
bind "o" { FocusNextPane; }
+ bind ";" { FocusLastPane; }
bind "d" { Detach; }
bind "Space" { NextSwapLayout; }
bind "x" { CloseFocus; SwitchToMode "Normal"; }
@@ -198,6 +199,7 @@ keybinds {
bind "Alt ]" { NextSwapLayout; }
bind "Alt p" { TogglePaneInGroup; }
bind "Alt Shift p" { ToggleGroupMarking; }
+ bind "Alt \\" { FocusLastPane; }
}
shared_except "normal" "locked" {
bind "Enter" "Esc" { SwitchToMode "Normal"; }