30 lines
599 B
QML
Executable File
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);
|
|
}
|
|
}
|