summaryrefslogtreecommitdiff
path: root/bar/Workspace.qml
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2026-07-26 17:56:47 +0800
committerlittleblack111 <littleblack11111@gmail.com>2026-07-26 17:56:47 +0800
commit7bc4e6df35894a18aec7695375bc7c47e78ba8cb (patch)
tree07001aeaa0c2be6547024b1e57694e5d7bc0116f /bar/Workspace.qml
parent8bcef61531ac9f1d44393061a928819bf7e3aee7 (diff)
fixup! fix(workspace): sync with upstream hyprctl dispatch changes
Diffstat (limited to 'bar/Workspace.qml')
-rw-r--r--bar/Workspace.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/bar/Workspace.qml b/bar/Workspace.qml
index f9f7c3e..3120199 100644
--- a/bar/Workspace.qml
+++ b/bar/Workspace.qml
@@ -234,14 +234,14 @@ Item {
// no idea wats wrong w/ prev so we just unify it to use +/- 1
if (event.angleDelta.y < 0) {
if (activeIndex + 1 < Bar.wss)
- Hyprland.dispatch(`workspace +1`);
+ Hyprland.dispatch(`hl.dsp.focus({ workspace = '+1' })`);
else
- Hyprland.dispatch(`workspace 1`);
+ Hyprland.dispatch(`hl.dsp.focus({ workspace = '1' })`);
} else if (event.angleDelta.y > 0) {
if (activeIndex + 1 > 1) {
- Hyprland.dispatch(`workspace -1`);
+ Hyprland.dispatch(`hl.dsp.focus({ workspace = '1' })`);
} else if (Bar.wss > 1) {
- Hyprland.dispatch(`workspace ${Bar.wss}`);
+ Hyprland.dispatch(`hl.dsp.focus({ workspace = '${Bar.wss}' })`);
}
}
}