From e43dcf5d4c3eaf0f17b378fcc7a8c657d79973ad Mon Sep 17 00:00:00 2001 From: Alvin <153151121+Alvin-HZ@users.noreply.github.com> Date: Fri, 8 Aug 2025 14:11:06 -0400 Subject: [PATCH 1/2] run hyprctl directly --- .config/quickshell/ii/services/HyprlandData.qml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.config/quickshell/ii/services/HyprlandData.qml b/.config/quickshell/ii/services/HyprlandData.qml index 07c2d89a2..d275d9c67 100644 --- a/.config/quickshell/ii/services/HyprlandData.qml +++ b/.config/quickshell/ii/services/HyprlandData.qml @@ -69,7 +69,7 @@ Singleton { Process { id: getClients - command: ["bash", "-c", "hyprctl clients -j"] + command: ["hyprctl" "clients" "-j"] stdout: StdioCollector { id: clientsCollector onStreamFinished: { @@ -87,7 +87,7 @@ Singleton { Process { id: getMonitors - command: ["bash", "-c", "hyprctl monitors -j"] + command: ["hyprctl" "monitors" "-j"] stdout: StdioCollector { id: monitorsCollector onStreamFinished: { @@ -98,7 +98,7 @@ Singleton { Process { id: getLayers - command: ["bash", "-c", "hyprctl layers -j"] + command: ["hyprctl" "layers" "-j"] stdout: StdioCollector { id: layersCollector onStreamFinished: { @@ -109,7 +109,7 @@ Singleton { Process { id: getWorkspaces - command: ["bash", "-c", "hyprctl workspaces -j"] + command: ["hyprctl" "workspaces" "-j"] stdout: StdioCollector { id: workspacesCollector onStreamFinished: { @@ -127,7 +127,7 @@ Singleton { Process { id: getActiveWorkspace - command: ["bash", "-c", "hyprctl activeworkspace -j"] + command: ["hyprctl" "activeworkspace" "-j"] stdout: StdioCollector { id: activeWorkspaceCollector onStreamFinished: { From 9d98396e33f4561d525c471e8e5416543e568d85 Mon Sep 17 00:00:00 2001 From: Alvin <153151121+Alvin-HZ@users.noreply.github.com> Date: Fri, 8 Aug 2025 14:15:07 -0400 Subject: [PATCH 2/2] Add missing commas --- .config/quickshell/ii/services/HyprlandData.qml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.config/quickshell/ii/services/HyprlandData.qml b/.config/quickshell/ii/services/HyprlandData.qml index d275d9c67..abbaaf577 100644 --- a/.config/quickshell/ii/services/HyprlandData.qml +++ b/.config/quickshell/ii/services/HyprlandData.qml @@ -69,7 +69,7 @@ Singleton { Process { id: getClients - command: ["hyprctl" "clients" "-j"] + command: ["hyprctl", "clients", "-j"] stdout: StdioCollector { id: clientsCollector onStreamFinished: { @@ -87,7 +87,7 @@ Singleton { Process { id: getMonitors - command: ["hyprctl" "monitors" "-j"] + command: ["hyprctl", "monitors", "-j"] stdout: StdioCollector { id: monitorsCollector onStreamFinished: { @@ -98,7 +98,7 @@ Singleton { Process { id: getLayers - command: ["hyprctl" "layers" "-j"] + command: ["hyprctl", "layers", "-j"] stdout: StdioCollector { id: layersCollector onStreamFinished: { @@ -109,7 +109,7 @@ Singleton { Process { id: getWorkspaces - command: ["hyprctl" "workspaces" "-j"] + command: ["hyprctl", "workspaces", "-j"] stdout: StdioCollector { id: workspacesCollector onStreamFinished: { @@ -127,7 +127,7 @@ Singleton { Process { id: getActiveWorkspace - command: ["hyprctl" "activeworkspace" "-j"] + command: ["hyprctl", "activeworkspace", "-j"] stdout: StdioCollector { id: activeWorkspaceCollector onStreamFinished: {