summaryrefslogtreecommitdiff
path: root/services/Hyprland.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-15 15:43:50 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-15 15:43:50 +1000
commit05e9561fd687c15baba56fc9eeca9a29b504abd2 (patch)
treea739b82c81d38727fe69c4c541a0509a75f15a8d /services/Hyprland.qml
parentcolours: more fixes for cli rewrite (diff)
downloadcaelestia-shell-05e9561fd687c15baba56fc9eeca9a29b504abd2.tar.gz
caelestia-shell-05e9561fd687c15baba56fc9eeca9a29b504abd2.tar.bz2
caelestia-shell-05e9561fd687c15baba56fc9eeca9a29b504abd2.zip
internal: use stdiocollector
Removes dependency on jq Also fix beatdetector
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)