From b154ccc549167e6bf50e08cd5e2ca72381b0a621 Mon Sep 17 00:00:00 2001 From: zer0day Date: Mon, 10 Nov 2025 13:58:32 +0100 Subject: [PATCH] Move clock logic to Time.qml --- user/Time.qml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 user/Time.qml diff --git a/user/Time.qml b/user/Time.qml new file mode 100644 index 0000000..42f4d48 --- /dev/null +++ b/user/Time.qml @@ -0,0 +1,25 @@ +import Quickshell +import Quickshell.Io +import QtQuick + +Scope { + id: root + property string 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