From fbaffc0816ebf40547406bf957db9b8ecee856ea Mon Sep 17 00:00:00 2001 From: thomas Date: Fri, 16 Oct 2026 02:26:10 +0100 Subject: [PATCH] Fix: Use Lua dispatch syntax for bar workspace buttons Co-Authored-By: Claude Opus 5.5 --- dotfiles/.config/quickshell/modules/bar/Workspaces.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dotfiles/.config/quickshell/modules/bar/Workspaces.qml b/dotfiles/.config/quickshell/modules/bar/Workspaces.qml index bf655b4..8d18251 100644 --- a/dotfiles/.config/quickshell/modules/bar/Workspaces.qml +++ b/dotfiles/.config/quickshell/modules/bar/Workspaces.qml @@ -37,7 +37,8 @@ RowLayout { MouseArea { anchors.fill: parent cursorShape: Qt.PointingHandCursor - onClicked: Hyprland.dispatch("workspace " + modelData.name) + // Hyprland's Lua config expects Lua syntax from dispatch + onClicked: Hyprland.dispatch("hl.dsp.focus({ workspace = " + JSON.stringify(modelData.id > 0 ? modelData.id : modelData.name) + " })") } } }