Add a native workspace overview drawer

SUPER+Tab opens a bar drawer with one live thumbnail per workspace, drawn
over the monitor's wallpaper. Click to go, drag windows between workspaces,
middle-click to close; arrows, 1-9, Enter and Esc from the keyboard.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mxandClaude Opus 5.5 committed 2026-11-12 15:56:27 +01:00
1 parent ebace10767
commit cc0ae50b95
9 files changed
+608 -2

No files matched your search

+18
View File
@@ -61,6 +61,24 @@ Singleton {
return false;
return true;
}
function focusWorkspace(id) {
if (!Number.isInteger(id) || id < 1)
return false;
Hyprland.dispatch("hl.dsp.focus({ workspace = '" + id + "' })");
return true;
}
// Moves a window to a workspace without following it there.
function moveToWorkspace(address, id) {
if (!/^(0x)?[0-9a-f]+$/i.test(address) || !Number.isInteger(id) || id < 1)
return false;
Hyprland.dispatch("hl.dsp.window.move({ workspace = '" + id + "', follow = false, window = 'address:" + (address.startsWith("0x") ? address : "0x" + address) + "' })");
clientsDebounce.restart();
return true;
}
// Re-reads window geometry now (Hyprland emits no event for resizes).
function refresh() {
clientsDebounce.restart();
}
Process {
id: clientsQuery
command: ["hyprctl", "-j", "clients"]