nysh/src/provider/Time.qml
Nydragon a44637492d
feat: make bar transparent
also move Time provider into provider folder
2024-08-25 03:58:44 +02:00

17 lines
304 B
QML

pragma Singleton
import Quickshell
import Quickshell.Io
import QtQuick
Singleton {
property var date: new Date()
property string time: date.toLocaleString(Qt.locale())
Timer {
interval: 1000
running: true
repeat: true
onTriggered: date = new Date()
}
}