quickshell/modules/bar/Bar.qml
2026-05-16 12:20:14 +02:00

55 lines
1.2 KiB
QML

import QtQuick
import QtQuick.Layouts
import Quickshell
import Quickshell.Wayland
import qs
import qs.settings
Variants {
model: Quickshell.screens
delegate: WlrLayershell {
id: root
required property var modelData
screen: modelData
anchors {
top: true
left: true
right: true
}
implicitHeight: Config.barHeight
color: Qt.rgba(Colors.base00.r, Colors.base00.g, Colors.base00.b, 0.8)
layer: WlrLayer.Top
RowLayout {
id: leftLayout
spacing: 5
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
anchors.leftMargin: 10
Ws {
barScreen: root.modelData
}
ActiveWindow {}
}
RowLayout {
id: centerLayout
anchors.centerIn: parent
spacing: 5
Clock {}
}
RowLayout {
id: rightLayout
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
spacing: 5
anchors.rightMargin: 10
Mpris {}
Bat {}
Pw {}
Tray {}
}
}
}