summaryrefslogtreecommitdiff
path: root/services/Hyprland.qml
diff options
context:
space:
mode:
Diffstat (limited to 'services/Hyprland.qml')
-rw-r--r--services/Hyprland.qml15
1 files changed, 7 insertions, 8 deletions
diff --git a/services/Hyprland.qml b/services/Hyprland.qml
index 610fba2..b8fa7c5 100644
--- a/services/Hyprland.qml
+++ b/services/Hyprland.qml
@@ -41,10 +41,10 @@ Singleton {
Process {
id: getClients
- command: ["sh", "-c", "hyprctl -j clients | jq -c"]
- stdout: SplitParser {
- onRead: data => {
- const clients = JSON.parse(data);
+ command: ["hyprctl", "-j", "clients"]
+ stdout: StdioCollector {
+ onStreamFinished: {
+ const clients = JSON.parse(text);
const rClients = root.clients;
const destroyed = rClients.filter(rc => !clients.find(c => c.address === rc.address));
@@ -68,10 +68,9 @@ Singleton {
Process {
id: getActiveClient
command: ["hyprctl", "-j", "activewindow"]
- stdout: SplitParser {
- splitMarker: ""
- onRead: data => {
- const client = JSON.parse(data);
+ stdout: StdioCollector {
+ onStreamFinished: {
+ const client = JSON.parse(text);
const rClient = root.activeClient;
if (client.address) {
if (rClient)