diff --git a/config/modules/quickshell/quickshell/Bar.qml b/config/modules/quickshell/quickshell/Bar.qml index 000541b..d8a2bf1 100644 --- a/config/modules/quickshell/quickshell/Bar.qml +++ b/config/modules/quickshell/quickshell/Bar.qml @@ -2,6 +2,7 @@ import Quickshell import Quickshell.Io import QtQuick +import QtQuick.Layouts Scope { id: root @@ -19,17 +20,42 @@ Scope { implicitHeight: 20 - Rectangle { - width: meow.width - height: meow.height - radius: 3.5 + RowLayout { + visible: true + height: parent.height + anchors { + top: parent.top + left: parent.left + right: parent.right + // bottomMargin: 2 + leftMargin: 5 + rightMargin: 5 + } + RowLayout { + // Left + Layout.alignment: Qt.AlignLeft + } + RowLayout { + // Center + Layout.alignment: Qt.AlignCenter + } + RowLayout { + // Right + Layout.alignment: Qt.AlignRight + Rectangle { + width: meow.width + height: meow.height + radius: 3.5 - color: "white" + color: "white" - anchors.centerIn: parent - Text { - id: meow - text: Clock.time + anchors.centerIn: parent + Text { + id: meow + // font.pointSize: 24 + text: Clock.time + } + } } } } diff --git a/config/modules/quickshell/quickshell/Clock.qml b/config/modules/quickshell/quickshell/Clock.qml index 11320c9..2c8e175 100644 --- a/config/modules/quickshell/quickshell/Clock.qml +++ b/config/modules/quickshell/quickshell/Clock.qml @@ -10,11 +10,11 @@ Singleton { readonly property string time: { // The passed format string matches the default output of // the `date` command. - Qt.formatDateTime(clock.date, "ddd MMM d hh:mm:ss AP t yyyy"); + Qt.formatDateTime(clock.date, "ddd MMM d HH:mm"); } SystemClock { id: clock - precision: SystemClock.Seconds + precision: SystemClock.minutes } }