-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClockWidget.qml
More file actions
46 lines (40 loc) · 863 Bytes
/
Copy pathClockWidget.qml
File metadata and controls
46 lines (40 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// ClockWidget.qml
import Quickshell
import QtQuick
Text {
id: clockHere
property string timeFormat: "~ hh:mm:ss AP ~"
color: Solid.color.colorA
text: Qt.formatDateTime(clock.date, timeFormat)
SystemClock {
id: clock
precision: SystemClock.Seconds
}
}
// Scope {
// id: root
// property string displayTime: "ballin"
//
// Text {
// text: root.displayTime
// anchors.centerIn: parent
// color: "black"
// }
//
// Process {
// id: grabTime
// command: ["date","+~ %r %N~"]
// running: true
//
// stdout: StdioCollector {
// onStreamFinished: root.displayTime = this.text
// }
// }
//
// Timer {
// interval: 100
// running: true
// repeat: true
// onTriggered: grabTime.running = true
// }
// }