Files
Olympus/home-manager/users/nathan/dotfiles/quickshell/modules/Bar.qml
2025-11-09 18:02:29 -06:00

82 lines
1.3 KiB
QML

import Quickshell // for PanelWindow
import QtQuick // for Text
import QtQuick.Controls
import QtQuick.Layouts
import Quickshell.Io
import Quickshell.Widgets
import Quickshell.Wayland
PanelWindow {
anchors {
top: true
//left: true
//right: true
//bottom: true
}
id: bar
exclusionMode: ExclusionMode.Ignore
WlrLayershell.layer: WlrLayer.Background
color: "#a0706050"
implicitHeight: 40
implicitWidth: 1900
Flow {
x: 0
padding: 5
spacing: 10
Launcher { id: l }
Workspaces { id: ws }
}
RowLayout {
x: (parent.width - cl.width) / 2 + parent.x - cl.x
y: parent.y + (parent.height - height) / 2
spacing: 10
Volume { id: v }
Battery { id: bat }
Hyprsunset { id: hs }
Clock { id: cl }
IdleInhibitor { id: ii }
Wifi { id: wifi }
Bluetooth { id: bt }
}
Flow {
x: parent.width + parent.x - width
padding: 5
spacing: 10
Layout.alignment: Qt.AlignRight
Media { id: media }
Tray { id: tray; window: bar }
Notifications { id: notif }
Power {
id: power
window: bar
}
}
}