import "root:/modules/common" import "root:/modules/common/widgets" import QtQuick import QtQuick.Layouts import Quickshell.Wayland import Quickshell.Hyprland Item { required property var bar readonly property HyprlandMonitor monitor: Hyprland.monitorFor(bar.screen) readonly property Toplevel activeWindow: ToplevelManager.activeToplevel height: parent.height width: colLayout.width ColumnLayout { id: colLayout anchors.verticalCenter: parent.verticalCenter anchors.left: parent.left anchors.right: parent.right spacing: -4 StyledText { Layout.fillWidth: true font.pixelSize: Appearance.font.pixelSize.smaller color: Appearance.colors.colSubtext elide: Text.ElideRight text: activeWindow?.activated ? activeWindow?.appId : qsTr("Desktop") } StyledText { Layout.fillWidth: true font.pixelSize: Appearance.font.pixelSize.small color: Appearance.colors.colOnLayer0 elide: Text.ElideRight text: activeWindow?.activated ? activeWindow?.title : `${qsTr("Workspace")} ${monitor.activeWorkspace?.id}` } } }