hyprland/ipc: expose Hyprland toplevels

This commit is contained in:
Maeeen 2025-06-20 04:09:37 -07:00 committed by outfoxxed
parent c115df8d34
commit 362c8e1b69
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
11 changed files with 685 additions and 43 deletions

View file

@ -0,0 +1,34 @@
import QtQuick
import QtQuick.Layouts
import Quickshell
import Quickshell.Widgets
import Quickshell.Hyprland
FloatingWindow {
ListView {
anchors.fill: parent
model: Hyprland.workspaces
spacing: 5
delegate: WrapperRectangle {
id: wsDelegate
required property HyprlandWorkspace modelData
color: "lightgray"
ColumnLayout {
Text { text: `Workspace ${wsDelegate.modelData.id} on ${wsDelegate.modelData.monitor} | urgent: ${wsDelegate.modelData.urgent}`}
ColumnLayout {
Repeater {
model: wsDelegate.modelData.toplevels
Text {
id: tDelegate
required property HyprlandToplevel modelData;
text: `${tDelegate.modelData}: ${tDelegate.modelData.title}`
}
}
}
}
}
}
}