diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-26 22:36:46 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-26 22:36:46 +1000 |
| commit | c2e78cc11c02db05a8d0a4680e715de8691b516a (patch) | |
| tree | 5571d22dc11d9f5cf2de4932c822d368eebc2fb1 /modules/bar/Bar.qml | |
| parent | clean (diff) | |
| download | caelestia-shell-c2e78cc11c02db05a8d0a4680e715de8691b516a.tar.gz caelestia-shell-c2e78cc11c02db05a8d0a4680e715de8691b516a.tar.bz2 caelestia-shell-c2e78cc11c02db05a8d0a4680e715de8691b516a.zip | |
feat: basic quickshell bar
Diffstat (limited to 'modules/bar/Bar.qml')
| -rw-r--r-- | modules/bar/Bar.qml | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/modules/bar/Bar.qml b/modules/bar/Bar.qml new file mode 100644 index 0000000..5aa18f7 --- /dev/null +++ b/modules/bar/Bar.qml @@ -0,0 +1,48 @@ +import "root:/widgets" +import "root:/config" +import Quickshell +import Quickshell.Wayland + +Variants { + model: Quickshell.screens + + WlrLayershell { + id: win + + property var modelData + property bool vertical: false + + screen: modelData + namespace: "caelestia-bar" + color: Appearance.alpha(Appearance.colours.base, false) + + anchors { + top: true + left: true + right: !vertical + bottom: vertical + } + + width: contents.implicitWidth + (vertical ? Appearance.padding.normal * 2 : 0) + height: contents.implicitHeight + (vertical ? 0 : Appearance.padding.smaller * 2) + + Box { + id: contents + + vertical: win.vertical + spacing: Appearance.spacing.larger + x: Appearance.padding.normal + y: vertical ? Appearance.padding.normal : Appearance.padding.smaller + + OsIcon {} + + Clock { + vertical: win.vertical + } + + ActiveWindow { + vertical: win.vertical + } + } + } +} |