From 07e21399d094f58d6527ca6969023759948a88dd Mon Sep 17 00:00:00 2001 From: zer0day Date: Mon, 10 Nov 2025 14:00:04 +0100 Subject: [PATCH] Move clock logic to Time.qml --- user/Bar.qml | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/user/Bar.qml b/user/Bar.qml index 46e30ed..6f41f9a 100644 --- a/user/Bar.qml +++ b/user/Bar.qml @@ -1,10 +1,7 @@ import Quickshell -import Quickshell.Io -import QTQuick Scope { - id: root - property string time + Time { id: timeSource } Variants { model: Quickshell.screens @@ -23,25 +20,8 @@ Scope { ClockWidget { anchors.centerIn: parent - text: root.time + time: timeSource.time } } } - - Process { - id: dateProc - command: ["date"] - running: true - - stdout StdioCollector { - onStreamFinished: root.time = this.text - } - } - - Timer { - intervall: 1000 - running: true - repeat: true - onTriggered: dateProc.running = true - } } \ No newline at end of file