nova-shell/modules/Bar.qml
2026-04-10 10:49:48 +02:00

79 lines
1.5 KiB
QML

import QtQuick
import QtQuick.Layouts
import Quickshell
import Quickshell.Wayland
import "." as M
PanelWindow {
id: bar
required property var screen
color: "transparent"
anchors {
top: true
left: true
right: true
}
implicitHeight: M.Theme.barHeight
exclusiveZone: implicitHeight
Rectangle {
anchors.fill: parent
color: M.Theme.base00
opacity: M.Theme.barOpacity
}
RowLayout {
anchors.fill: parent
anchors.leftMargin: 8
anchors.rightMargin: 8
spacing: 8
// ---- left ----
RowLayout {
Layout.alignment: Qt.AlignLeft
spacing: 8
M.Workspaces {}
M.Tray { bar: bar }
M.WindowTitle { Layout.maximumWidth: 400 }
}
Item { Layout.fillWidth: true }
// ---- center ----
RowLayout {
Layout.alignment: Qt.AlignHCenter
spacing: 8
M.Clock {}
M.Notifications {}
}
Item { Layout.fillWidth: true }
// ---- right ----
RowLayout {
Layout.alignment: Qt.AlignRight
spacing: 12
M.Mpris {}
M.Volume {}
M.Bluetooth {}
M.Backlight {}
M.Network {}
M.PowerProfile {}
M.IdleInhibitor {}
M.Weather {}
M.Temperature {}
M.Cpu {}
M.Memory {}
M.Disk {}
M.Battery {}
M.Wlogout {}
}
}
}