quickshell fixes

This commit is contained in:
vali 2024-08-09 11:54:07 +02:00
commit 82aee7b018
10 changed files with 96 additions and 29 deletions

View file

@ -0,0 +1,31 @@
import Quickshell.Io
import QtQuick
import QtQuick.Layouts
Item {
property string time
Text {
text: time
}
Process {
id: dateProc
command: ["date", "-u", "+%a, %d %b %H:%M:%S"]
running: true
stdout: SplitParser {
onRead: data => time = data
}
}
Timer {
interval: 1000
running: true
repeat: true
onTriggered: dateProc.running = true
}
}