This repository has been archived on 2026-11-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2026-08-23 20:20:02 +02:00

86 lines
2.6 KiB
QML

import Quickshell
import Quickshell.Io
import Quickshell.Hyprland
import QtQuick
import QtQuick.Layouts
import "components"
import "core"
Scope {
Variants {
model: Quickshell.screens
delegate: Component {
PanelWindow {
id: topBar
required property var modelData
property var hyprMonitor: Hyprland.monitorFor(modelData)
screen: modelData
anchors {
top: true
left: true
right: true
}
implicitHeight: 32 + 8 // Changed to implicitHeight per warnings
color: "transparent"
exclusiveZone: implicitHeight
Item {
anchors.fill: parent
anchors.topMargin: 8
anchors.leftMargin: Theme.padding
anchors.rightMargin: Theme.padding
// Left: Workspaces
RowLayout {
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
// Wrap workspaces in a solid pill
ModuleContainer {
pillColor: Theme.bgAlt
customContent: Component {
Workspaces {
monitor: hyprMonitor
}
}
}
}
// Center: Clock
RowLayout {
anchors.centerIn: parent
Clock {
pillColor: Theme.primary
monitor: hyprMonitor
exclusiveToScreen: true
}
}
// Right: Status Indicators
RowLayout {
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
StatusIndicators {
monitor: hyprMonitor
exclusiveToScreen: true
}
}
}
}
}
}
// Notification Daemon (Global, usually tied to primary monitor or floating)
NotificationDaemon {}
// Global floating widget windows
AppLauncherWindow {}
ClipboardPickerWindow {}
PowerMenuWindow {}
}