diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-24 09:40:20 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-24 09:40:20 +0200 |
| commit | 0fa4736470a39b6abbb0e70d3eb5b7636fb61549 (patch) | |
| tree | 6ca200ec12835ba08efdec564d7651186a08b3a3 /window-switcher/Switcher.qml | |
| parent | c889501587db1d6ddf9440c002a1efc37444e1ca (diff) | |
| download | quickshell-0fa4736470a39b6abbb0e70d3eb5b7636fb61549.tar.gz quickshell-0fa4736470a39b6abbb0e70d3eb5b7636fb61549.zip | |
window-switcher: Del closes the selected window
The keyboard could pick a window but only the mouse could close one, on
the hovered card's x. Del closes the selection and, like the x, leaves
the overlay open for the next close; the card goes when Hyprland
reports the window gone, and the next arrow press picks the top-left
card again.
The README also still named the IPC show(), renamed open() in c889501.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'window-switcher/Switcher.qml')
| -rw-r--r-- | window-switcher/Switcher.qml | 2 |
1 files changed, 2 insertions, 0 deletions
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) |
