Files
dotfiles/.config/quickshell/Bar.qml
T

61 lines
1.6 KiB
QML

// Bar.qml - top panel
// Neighbouring types (Pill, ClockWidget, Theme, etc.) are auto-imported by QuickShell.
import Quickshell
import Quickshell.Wayland
import QtQuick
import QtQuick.Layouts
import "./modules"
PanelWindow {
id: root
WlrLayershell.namespace: "quickshell-bar"
WlrLayershell.layer: WlrLayer.Top
WlrLayershell.keyboardFocus: WlrKeyboardFocus.None
anchors {
top: true
left: true
right: true
}
margins {
left: 2
right: 2
bottom: 1
top: 3
}
implicitHeight: Theme.barHeight
exclusiveZone: Theme.barHeight
color: "transparent"
RowLayout {
anchors.fill: parent
anchors.leftMargin: 4
anchors.rightMargin: 4
spacing: Theme.spacing
// ─── LEFT ──────────────────────────────────────────
ClockWidget {}
WeatherWidget {}
SysTrayWidget {}
WorkspacesWidget { screen: root.screen }
MediaWidget {}
WindowTitleWidget { screen: root.screen }
Item { Layout.fillWidth: true }
// ─── RIGHT ─────────────────────────────────────────
CavaWidget {}
AudioWidget {}
MemoryWidget {}
CpuWidget {}
TemperatureWidget {}
BatteryWidget {}
BluetoothWidget {}
PowerProfilesWidget {}
PowerMenuWidget {}
}
}