summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif/shell/quickshell/Bar.qml
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/Bar.qml')
-rw-r--r--accounts/gkleen@sif/shell/quickshell/Bar.qml112
1 files changed, 112 insertions, 0 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/Bar.qml b/accounts/gkleen@sif/shell/quickshell/Bar.qml
new file mode 100644
index 00000000..c0ff4dac
--- /dev/null
+++ b/accounts/gkleen@sif/shell/quickshell/Bar.qml
@@ -0,0 +1,112 @@
1import Quickshell
2import Quickshell.Wayland
3import QtQuick
4
5PanelWindow {
6 id: bar
7
8 WlrLayershell.namespace: "bar"
9
10 anchors {
11 top: true
12 left: true
13 right: true
14 }
15 margins {
16 left: 26 + 8
17 right: 26 + 8
18 }
19
20 implicitHeight: 21
21 color: "transparent"
22
23 Rectangle {
24 color: Qt.rgba(0, 0, 0, 0.75)
25 anchors.fill: parent
26 // bottomLeftRadius: 8
27 // bottomRightRadius: 8
28 }
29
30 Row {
31 id: left
32
33 height: parent.height
34 width: childrenRect.width
35 anchors.left: parent.left
36 anchors.leftMargin: 8
37 anchors.verticalCenter: parent.verticalCenter
38 spacing: 8
39
40 WorkspaceSwitcher {
41 screen: bar.screen
42 }
43 }
44
45 Row {
46 id: center
47
48 height: parent.height
49 width: childrenRect.width
50 anchors.centerIn: parent
51 spacing: 5
52
53 ActiveWindowDisplay {
54 screen: bar.screen
55 maxWidth: bar.width - 2*Math.max(left.width, right.width) - 2*8
56 }
57 }
58
59 Row {
60 id: right
61
62 height: parent.height
63 width: childrenRect.width
64 anchors.right: parent.right
65 anchors.rightMargin: 8
66 anchors.verticalCenter: parent.verticalCenter
67 spacing: 0
68
69 WorktimeWidget {}
70
71 KeyboardLayout {}
72
73 Item {
74 visible: privacy.visible
75 height: parent.height
76 width: 8 - 4
77 }
78
79 PrivacyWidget {
80 id: privacy
81 }
82
83 Item {
84 visible: privacy.visible
85 height: parent.height
86 width: 8 - 4
87 }
88
89 SystemTray {}
90
91 PipewireWidget {}
92
93 BrightnessWidget {}
94
95 BatteryWidget {}
96
97 WaylandInhibitorWidget {
98 window: bar
99 }
100
101 NotificationInhibitorWidget {}
102
103 LidSwitchInhibitorWidget {}
104
105 Item {
106 height: parent.height
107 width: 8 - 4
108 }
109
110 Clock {}
111 }
112} \ No newline at end of file