From c3a8a171734bfeced58f4611365e85a6daed7db9 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 29 Aug 2025 23:06:55 +0200 Subject: ... --- accounts/gkleen@sif/shell/quickshell/Bar.qml | 81 ++++++++++++++++++++++++++ accounts/gkleen@sif/shell/quickshell/shell.qml | 13 +++++ 2 files changed, 94 insertions(+) create mode 100644 accounts/gkleen@sif/shell/quickshell/Bar.qml create mode 100644 accounts/gkleen@sif/shell/quickshell/shell.qml (limited to 'accounts/gkleen@sif/shell/quickshell') diff --git a/accounts/gkleen@sif/shell/quickshell/Bar.qml b/accounts/gkleen@sif/shell/quickshell/Bar.qml new file mode 100644 index 00000000..b7235a61 --- /dev/null +++ b/accounts/gkleen@sif/shell/quickshell/Bar.qml @@ -0,0 +1,81 @@ +import Quickshell +import Quickshell.Io +import Custom as Custom +import QtQuick + + +PanelWindow { + property var modelData + + anchors { + bottom: true + left: true + right: true + } + margins { + left: 26 + 8 + right: 26 + 8 + } + + screen: modelData + implicitHeight: 21 + color: Qt.rgba(0, 0, 0, 0.66) + + Row { + id: left + + height: parent.height + anchors.left: parent.left + anchors.leftMargin: 8 + anchors.verticalCenter: parent.verticalCenter + spacing: 5 + + Text { + color: "white" + anchors.verticalCenter: parent.verticalCenter + text: "left" + } + } + + Row { + id: center + + height: parent.height + anchors.centerIn: parent + spacing: 5 + + Text { + color: "white" + anchors.verticalCenter: parent.verticalCenter + text: "center" + } + } + + Row { + id: right + + height: parent.height + anchors.right: parent.right + anchors.rightMargin: 8 + anchors.verticalCenter: parent.verticalCenter + spacing: 5 + + Text { + id: clock + color: "white" + + anchors.verticalCenter: parent.verticalCenter + + Custom.Chrono { + id: chrono + format: "W{0:%V-%u} {0:%F} {0:%H:%M:%S%Ez}" + } + + text: chrono.date + + font.pointSize: 10 + font.family: "Fira Sans" + font.features: { "tnum": 1 } + } + } +} \ No newline at end of file diff --git a/accounts/gkleen@sif/shell/quickshell/shell.qml b/accounts/gkleen@sif/shell/quickshell/shell.qml new file mode 100644 index 00000000..35fe5344 --- /dev/null +++ b/accounts/gkleen@sif/shell/quickshell/shell.qml @@ -0,0 +1,13 @@ +import Quickshell + +ShellRoot { + settings.watchFiles: false + + Variants { + model: Quickshell.screens + + delegate: Bar { + modelData: item + } + } +} -- cgit v1.2.3