aboutsummaryrefslogtreecommitdiffstats
path: root/window-switcher
diff options
context:
space:
mode:
Diffstat (limited to 'window-switcher')
-rw-r--r--window-switcher/README.md3
-rw-r--r--window-switcher/Switcher.qml2
2 files changed, 4 insertions, 1 deletions
diff --git a/window-switcher/README.md b/window-switcher/README.md
index fb3dc8d..3a32bc5 100644
--- a/window-switcher/README.md
+++ b/window-switcher/README.md
@@ -46,7 +46,7 @@ running for the keybind to do anything:
qs -p ~/Programming/GIT/quickshell/window-switcher ipc call switcher toggle
Write that path out in full in the real config: Hyprland's Lua strings have no
-shell to expand `~`. The bind lives in `keybindings.lua` on ALT+TAB. `show` and
+shell to expand `~`. The bind lives in `keybindings.lua` on ALT+TAB. `open` and
`close` exist on the same IPC target for anything that wants one direction only.
## Interaction
@@ -57,6 +57,7 @@ shell to expand `~`. The bind lives in `keybindings.lua` on ALT+TAB. `show` and
| top-right corner of DP-1 | open, after the glow (see below) |
| click a preview | focus that window and dismiss |
| the `x` on a hovered preview | close that window, overlay stays open |
+| Del | close the selected window, overlay stays open |
| arrow keys | select a preview; the first press picks the top-left one |
| Enter | focus the selected window and dismiss |
| Escape, or a click on the backdrop | dismiss, focus unchanged |
diff --git a/window-switcher/Switcher.qml b/window-switcher/Switcher.qml
index 1eebfa8..3bc6a86 100644
--- a/window-switcher/Switcher.qml
+++ b/window-switcher/Switcher.qml
@@ -87,6 +87,8 @@ Scope {
Keys.onEscapePressed: root.close()
Keys.onReturnPressed: if (scatter.selected) root.focusAfterClose(scatter.selected)
Keys.onEnterPressed: if (scatter.selected) root.focusAfterClose(scatter.selected)
+ // Like the card's x: the overlay stays open for the next one.
+ Keys.onDeletePressed: if (scatter.selected) Windows.closeWindow(scatter.selected)
Keys.onLeftPressed: scatter.move(-1, 0)
Keys.onRightPressed: scatter.move(1, 0)
Keys.onUpPressed: scatter.move(0, -1)