pragma ComponentBehavior: Bound import QtQuick import QtQuick.Layouts import Quickshell import qs.bar.systray as SysTray import qs.bar.audio as Audio import qs.bar.mpris as Mpris import qs.bar.connections as Connections import qs.bar.power as Power import qs.notifications as Notifs BarContainment { id: root property bool isSoleBar: Quickshell.screens.length == 1; ColumnLayout { anchors { left: parent.left right: parent.right top: parent.top } ColumnLayout { Layout.fillWidth: true Notifs.NotificationWidget { Layout.fillWidth: true bar: root } ColumnLayout { spacing: 0 Loader { active: root.isSoleBar Layout.preferredHeight: active ? implicitHeight : 0; Layout.fillWidth: true sourceComponent: Workspaces { bar: root wsBaseIndex: 1 } } Workspaces { bar: root Layout.fillWidth: true wsBaseIndex: root.screen.name == "eDP-1" ? 11 : 1; hideWhenEmpty: root.isSoleBar } } } } ColumnLayout { anchors { left: parent.left right: parent.right bottom: parent.bottom } Mpris.Players { bar: root Layout.fillWidth: true } Audio.AudioControls { bar: root Layout.fillWidth: true } SysTray.SysTray { bar: root Layout.fillWidth: true } Connections.Connections { bar: root Layout.fillWidth: true } Power.Power { bar: root Layout.fillWidth: true } ClockWidget { bar: root Layout.fillWidth: true } } }