Files
dotfiles/quickshell/bar/widgets/workspace/HyprlandWindowTracker.qml
doloro 2e94f6dac3 meow
2025-09-22 20:55:16 +00:00

30 lines
599 B
QML
Executable File

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);
}
}