diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-07-20 18:11:01 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-07-20 18:11:01 +0800 |
| commit | acbe74b93cafc090c4aefa65c5630b6092df9547 (patch) | |
| tree | 2f01aa4456b3c93375316c55f0e4ab17ed12902f /bar | |
| parent | 16b44d6299512d9c4341bad36c71b652cffd85cc (diff) | |
fix(workspace): sync with upstream hyprctl dispatch changes
Diffstat (limited to 'bar')
| -rw-r--r-- | bar/Workspace.qml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bar/Workspace.qml b/bar/Workspace.qml index 70fc51f..f9f7c3e 100644 --- a/bar/Workspace.qml +++ b/bar/Workspace.qml @@ -136,7 +136,7 @@ Item { onPressed: { if (!parent.active) - Hyprland.dispatch(`workspace ${index + 1}`); + Hyprland.dispatch(`hl.dsp.focus({ workspace = '${index + 1}' })`); } function moveActive() { activeRect.x = parent.x; @@ -167,14 +167,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}' })`); } } } |
