run hyprctl directly

This commit is contained in:
Alvin
2025-08-08 14:11:06 -04:00
parent eac4ab3e3c
commit e43dcf5d4c
@@ -69,7 +69,7 @@ Singleton {
Process { Process {
id: getClients id: getClients
command: ["bash", "-c", "hyprctl clients -j"] command: ["hyprctl" "clients" "-j"]
stdout: StdioCollector { stdout: StdioCollector {
id: clientsCollector id: clientsCollector
onStreamFinished: { onStreamFinished: {
@@ -87,7 +87,7 @@ Singleton {
Process { Process {
id: getMonitors id: getMonitors
command: ["bash", "-c", "hyprctl monitors -j"] command: ["hyprctl" "monitors" "-j"]
stdout: StdioCollector { stdout: StdioCollector {
id: monitorsCollector id: monitorsCollector
onStreamFinished: { onStreamFinished: {
@@ -98,7 +98,7 @@ Singleton {
Process { Process {
id: getLayers id: getLayers
command: ["bash", "-c", "hyprctl layers -j"] command: ["hyprctl" "layers" "-j"]
stdout: StdioCollector { stdout: StdioCollector {
id: layersCollector id: layersCollector
onStreamFinished: { onStreamFinished: {
@@ -109,7 +109,7 @@ Singleton {
Process { Process {
id: getWorkspaces id: getWorkspaces
command: ["bash", "-c", "hyprctl workspaces -j"] command: ["hyprctl" "workspaces" "-j"]
stdout: StdioCollector { stdout: StdioCollector {
id: workspacesCollector id: workspacesCollector
onStreamFinished: { onStreamFinished: {
@@ -127,7 +127,7 @@ Singleton {
Process { Process {
id: getActiveWorkspace id: getActiveWorkspace
command: ["bash", "-c", "hyprctl activeworkspace -j"] command: ["hyprctl" "activeworkspace" "-j"]
stdout: StdioCollector { stdout: StdioCollector {
id: activeWorkspaceCollector id: activeWorkspaceCollector
onStreamFinished: { onStreamFinished: {