import QtQuick // for Text import QtQuick.Controls import QtQuick.Layouts import Quickshell.Widgets import Quickshell.Hyprland import Quickshell Item { implicitWidth: t.contentWidth + 10 implicitHeight: 30 ClippingWrapperRectangle { radius: 5 anchors.fill: parent Text { id: t verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignHCenter text: { if(hws.toplevels.values.length > 0) { return Hyprland.activeToplevel.title } else { return " Desktop" } } property HyprlandWorkspace hws: Hyprland.focusedWorkspace onHwsChanged: { Hyprland.refreshToplevels() Hyprland.refreshWorkspaces() } font.pointSize: 11 } } }