mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 02:28:37 +02:00
30 lines
592 B
QML
30 lines
592 B
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
import Quickshell.Io
|
|
import "../theme" as Theme
|
|
import ".."
|
|
|
|
Text {
|
|
id: timetxt
|
|
font.family: "BigBlueTermPlusNerdFont"
|
|
font.pointSize: 16
|
|
font.bold: true
|
|
color: Theme.Colors.timeColor1
|
|
opacity: 0.5
|
|
|
|
Process {
|
|
id: dateProc
|
|
command: ["date", "+%Y-%m-%d\(%a\)\ %T"]
|
|
running: true
|
|
stdout: SplitParser {
|
|
onRead: data => timetxt.text = data
|
|
}
|
|
}
|
|
Timer {
|
|
interval: 1000
|
|
running: true
|
|
repeat: true
|
|
onTriggered: dateProc.running = true
|
|
}
|
|
}
|