From 5f409d11ef1c83c78e917082a0ff25dc696885bc Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Fri, 10 Jan 2025 19:52:14 +0400 Subject: [PATCH] this will do for now --- config/quickshell/Date.qml | 34 ++++++++++++++++++++++ config/quickshell/Time.qml | 2 +- config/quickshell/Workspaces.qml | 3 +- config/quickshell/shell.qml | 48 +++++++++++++++++--------------- 4 files changed, 63 insertions(+), 24 deletions(-) create mode 100644 config/quickshell/Date.qml diff --git a/config/quickshell/Date.qml b/config/quickshell/Date.qml new file mode 100644 index 00000000..241f9efa --- /dev/null +++ b/config/quickshell/Date.qml @@ -0,0 +1,34 @@ +import QtQuick +import QtQuick.Layouts +import QtQuick.Controls +import Quickshell +import Quickshell.Io + + +ListView { + id: root + + height: 70 + width: 60 + + property date currentDate: new Date() + + Item { + width: parent.width + height: parent.height + anchors.centerIn: parent + Rectangle { + width: 60 + height: 65 + radius: 3 + Text { + Layout.alignment: Qt.AlignHCenter + anchors.centerIn: parent + font.pointSize: 20 + color: "black" + } + + } + } +} + diff --git a/config/quickshell/Time.qml b/config/quickshell/Time.qml index 96ef4374..76f45a71 100644 --- a/config/quickshell/Time.qml +++ b/config/quickshell/Time.qml @@ -20,7 +20,7 @@ ListView { Rectangle { width: 60 - height: 60 + height: 65 radius: 3 anchors.centerIn: parent Text { diff --git a/config/quickshell/Workspaces.qml b/config/quickshell/Workspaces.qml index 6ef2b768..0c519660 100644 --- a/config/quickshell/Workspaces.qml +++ b/config/quickshell/Workspaces.qml @@ -14,9 +14,10 @@ ListView { model: workspaceArray anchors.top: parent.top - height: 150 + height: 135 width: 60 spacing: 5 + interactive: false delegate: Item { width: Math.max((modelData.active) ? 70 : 40, 70) height: 10 diff --git a/config/quickshell/shell.qml b/config/quickshell/shell.qml index cc777936..fec94197 100644 --- a/config/quickshell/shell.qml +++ b/config/quickshell/shell.qml @@ -8,6 +8,8 @@ import QtQuick.Layouts ShellRoot { + id: root + ReloadPopup {} property string time; @@ -45,8 +47,8 @@ ShellRoot { height: 30; - // left - RowLayout { + // top + ColumnLayout { /* anchors.left: parent.left */ anchors.top: parent.top /* anchors.bottom: parent.bottom */ @@ -58,39 +60,41 @@ ShellRoot { } // Center - RowLayout { - anchors.centerIn: parent - Text { - color: "#FFFFFF" - // now just time instead of root.time - text: time - } + ColumnLayout { + /* anchors.centerIn: parent */ + /* Text { */ + /* color: "#FFFFFF" */ + /* // now just time instead of root.time */ + /* text: time */ + /* } */ } - // right - RowLayout { - /* anchors.right: parent.right */ + // bottom + ColumnLayout { anchors.bottom: parent.bottom + anchors.horizontalCenter: parent.horizontalCenter /* spacing: 5 */ + Battery { } - Time { } + /* Date {} */ + Time {} } } } - Process { - id: dateProc - command: ["date", "+%I:%M%p %A, %b %e, %Y"] - running: true + /* Process { */ + /* id: dateProc */ + /* command: ["date", "+%m %d"] */ + /* running: true */ - stdout: SplitParser { - // now just time instead of root.time - onRead: data => time = data - } - } + /* stdout: SplitParser { */ + /* // now just time instead of root.time */ + /* onRead: data => time = data */ + /* } */ + /* } */ Timer { interval: 1000