From a23d050df5b193039684742c742ba37de0800698 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Tue, 12 May 2026 07:24:29 +0200 Subject: [PATCH] qs: hyprland dispatcher fixes --- .../ii/modules/hefty/topLayer/bar/widgets/HWindowInfo.qml | 4 ++-- .../ii/modules/hefty/topLayer/bar/widgets/HWorkspaces.qml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/widgets/HWindowInfo.qml b/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/widgets/HWindowInfo.qml index 58b195a1f..73557409f 100644 --- a/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/widgets/HWindowInfo.qml +++ b/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/widgets/HWindowInfo.qml @@ -230,7 +230,7 @@ HBarWidgetWithPopout { materialSymbol: toFloat ? "picture_in_picture_center" : "side_navigation" text: toFloat ? Translation.tr("Float") : Translation.tr("Tile") onClicked: { - Hyprland.dispatch(`togglefloating address:${root.activeHyprlandClient.address}`) + Hyprland.dispatch(`hl.dsp.window.float({action = "toggle", window = {address=${root.activeHyprlandClient.address}}})`) HyprlandData.updateWindowList() } } @@ -244,7 +244,7 @@ HBarWidgetWithPopout { colBackground: Appearance.colors.colError colForeground: Appearance.colors.colOnError onClicked: { - Hyprland.dispatch(`killwindow address:${root.activeHyprlandClient.address}`) + Hyprland.dispatch(`hl.dsp.window.kill({window = {address=${root.activeHyprlandClient.address}}})`) HyprlandData.updateWindowList() } } diff --git a/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/widgets/HWorkspaces.qml b/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/widgets/HWorkspaces.qml index 4a99d9c33..317501b9a 100644 --- a/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/widgets/HWorkspaces.qml +++ b/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/widgets/HWorkspaces.qml @@ -62,7 +62,7 @@ HBarWidgetContainer { } function switchWorkspaceToHovered() { - Hyprland.dispatch(`workspace ${wsModel.getWorkspaceIdAt(hoverIndex)}`) + Hyprland.dispatch(`hl.dsp.focus({workspace = ${wsModel.getWorkspaceIdAt(hoverIndex)}})`) } onPressed: (mouse) => { if (mouse.button == Qt.LeftButton) @@ -72,9 +72,9 @@ HBarWidgetContainer { } onWheel: (event) => { if (event.angleDelta.y < 0) - Hyprland.dispatch(`workspace r+1`); + Hyprland.dispatch(`hl.dsp.focus({workspace = "r+1"})`); else if (event.angleDelta.y > 0) - Hyprland.dispatch(`workspace r-1`); + Hyprland.dispatch(`hl.dsp.focus({workspace = "r-1"})`); } // Indications