Files
dotfiles/quickshell/bar/widgets/workspace/HyprlandWindowTracker.qml
2025-07-30 23:21:13 +01:00

30 lines
599 B
QML

pragma Singleton
import Quickshell
import QtQuick
import Quickshell.Io
import Quickshell.Hyprland
Singleton {
id: root
// property string aaaa: "";
property list<HyprlandClient> meow;
property Hyprland hyprland: Hyprland;
Process {
id: dateProc
command: ["hyprctl", "clients"]
running: true
stdout: StdioCollector {
onStreamFinished: parseClients(this.text)
}
}
function parseClients(text) {
hyprland.refreshToplevels();
var meow = hyprland.activeToplevel.lastIpcObject;
console.log(meow.class);
}
}