mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 10:30:44 +02:00
29 lines
538 B
QML
29 lines
538 B
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
import Quickshell.Io
|
|
import ".."
|
|
|
|
Text {
|
|
id: timetxt
|
|
font.family: "BigBlueTermPlusNerdFont"
|
|
font.pointSize: 16
|
|
font.bold: true
|
|
color: "white"
|
|
opacity: 0.5
|
|
|
|
Process {
|
|
id: dateProc
|
|
command: ["date", "+%H⯁%M"]
|
|
running: true
|
|
stdout: SplitParser {
|
|
onRead: data => timetxt.text = data
|
|
}
|
|
}
|
|
Timer {
|
|
interval: 1000
|
|
running: true
|
|
repeat: true
|
|
onTriggered: dateProc.running = true
|
|
}
|
|
}
|