feat: update bar

This commit is contained in:
johannes committed 2026-08-30 17:51:19 +02:00
1 parent d503ff7496
commit b1fee11c33
3 files changed
+42 -13

No files matched your search

@@ -43,6 +43,11 @@ PanelWindow {
WlrLayershell.layer: WlrLayer.Top
WlrLayershell.namespace: "quickshell-bar"
// The clock and tray only make sense once, so they live on whichever
// monitor the mouse currently sits on (Hyprland's focused monitor
// follows the cursor), rather than being duplicated on every screen.
readonly property bool isFocusedMonitor: Hyprland.focusedMonitor && Hyprland.focusedMonitor.name === screen.name
// Left Pill (Workspaces) - tinted with the primary accent.
Pill {
id: leftPill
@@ -56,7 +61,7 @@ PanelWindow {
Row {
spacing: Theme.geometry.spacing
Repeater {
model: Hyprland.workspaces.values
model: Hyprland.workspaces.values.filter(ws => ws.monitor && ws.monitor.name === barWindow.screen.name)
delegate: Rectangle {
width: 24
@@ -88,6 +93,7 @@ PanelWindow {
// Center Pill (Clock) - tinted with the secondary accent.
Pill {
id: centerPill
visible: barWindow.isFocusedMonitor
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
height: parent.height
@@ -113,6 +119,7 @@ PanelWindow {
// color so the pill reads as a set of distinct signals, not one blob.
Pill {
id: rightPill
visible: barWindow.isFocusedMonitor
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
height: parent.height
+9 -4
View File
@@ -90,10 +90,15 @@ ShellRoot {
id: trayTooltip
}
Bar {
id: bar
rootState: root
trayTooltip: trayTooltip
Variants {
model: Quickshell.screens
Bar {
required property var modelData
screen: modelData
rootState: root
trayTooltip: trayTooltip
}
}
CommandPalette {