Preview a workspace live when hovering it in the bar

The bar popout shows the hovered workspace as on its monitor: the
wallpaper and a live capture of each window where it sits. A click on it
switches there. The focused workspace is not previewed. Settings -> Bar
-> Preview on hover turns it off (bar.workspaces.preview).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mxandClaude Opus 5.5 committed 2026-11-26 00:01:44 +01:00
1 parent 84c2385cfa
commit eb81d51c07
9 files changed
+231 -8

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ const edited = api.update(loaded, 'appearance.customAccent', '#abcdef');
assert.equal(loaded.appearance.customAccent, '#123456');
assert.equal(edited.appearance.customAccent, '#abcdef');
assert.equal(loaded.appearance.glassTint, '#000000');
assert.equal(loaded.osd.position, 'top-right');assert.equal(loaded.bar.workspaces.style, 'numbers');
assert.equal(loaded.osd.position, 'top-right');assert.equal(loaded.bar.workspaces.preview, true);assert.throws(() => api.update(loaded, 'bar.workspaces.preview', 'yes'), /workspace preview/);assert.equal(loaded.bar.workspaces.style, 'numbers');
const widget={id:'w-1',type:'clock',variant:'digital',monitor:'DP-1',x:10,y:20,w:260,h:130,opacity:1,options:{}};
assert.deepEqual(loaded.desktopWidgets.items,[]);
assert.equal(loaded.lock.backdrop,'wallpaper');assert.equal(loaded.lock.pamService,'');assert.equal(api.update(loaded,'lock.pamService','hyprlock').lock.pamService,'hyprlock');