workspace view rework
This commit is contained in:
29
quickshell/bar/widgets/workspace/HyprlandWindowTracker.qml
Normal file
29
quickshell/bar/widgets/workspace/HyprlandWindowTracker.qml
Normal file
@@ -0,0 +1,29 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user