diff options
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/Bar.qml')
| -rw-r--r-- | accounts/gkleen@sif/shell/quickshell/Bar.qml | 114 |
1 files changed, 114 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..c998c335 --- /dev/null +++ b/accounts/gkleen@sif/shell/quickshell/Bar.qml | |||
| @@ -0,0 +1,114 @@ | |||
| 1 | import Quickshell | ||
| 2 | import Quickshell.Wayland | ||
| 3 | import QtQuick | ||
| 4 | |||
| 5 | PanelWindow { | ||
| 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 { command: "time"; } | ||
| 70 | |||
| 71 | // WorktimeWidget { command: "today"; } | ||
| 72 | |||
| 73 | KeyboardLayout {} | ||
| 74 | |||
| 75 | Item { | ||
| 76 | visible: privacy.visible | ||
| 77 | height: parent.height | ||
| 78 | width: 8 - 4 | ||
| 79 | } | ||
| 80 | |||
| 81 | PrivacyWidget { | ||
| 82 | id: privacy | ||
| 83 | } | ||
| 84 | |||
| 85 | Item { | ||
| 86 | visible: privacy.visible | ||
| 87 | height: parent.height | ||
| 88 | width: 8 - 4 | ||
| 89 | } | ||
| 90 | |||
| 91 | SystemTray {} | ||
| 92 | |||
| 93 | PipewireWidget {} | ||
| 94 | |||
| 95 | BrightnessWidget {} | ||
| 96 | |||
| 97 | BatteryWidget {} | ||
| 98 | |||
| 99 | WaylandInhibitorWidget { | ||
| 100 | window: bar | ||
| 101 | } | ||
| 102 | |||
| 103 | NotificationInhibitorWidget {} | ||
| 104 | |||
| 105 | LidSwitchInhibitorWidget {} | ||
| 106 | |||
| 107 | Item { | ||
| 108 | height: parent.height | ||
| 109 | width: 8 - 4 | ||
| 110 | } | ||
| 111 | |||
| 112 | Clock {} | ||
| 113 | } | ||
| 114 | } \ No newline at end of file | ||
