nova-shell/modules/Bar.qml
2026-04-10 23:32:47 +02:00

78 lines
1.6 KiB
QML

import QtQuick
import QtQuick.Layouts
import Quickshell
import Quickshell.Wayland
import "." as M
PanelWindow {
id: bar
required property var screen
color: "transparent"
layer: WlrLayer.Bottom
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: 0
// ---- left ----
RowLayout {
Layout.fillWidth: true
spacing: 8
M.Workspaces {}
M.Tray { bar: bar }
M.WindowTitle { Layout.maximumWidth: 400 }
Item { Layout.fillWidth: true }
}
// ---- center ----
RowLayout {
spacing: 8
Layout.alignment: Qt.AlignVCenter
M.Clock {}
M.Notifications {}
}
// ---- right ----
RowLayout {
Layout.fillWidth: true
spacing: 12
Item { Layout.fillWidth: true }
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 {}
}
}
}