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