mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 02:28:37 +02:00
ported some quickshell stuff from rivendell-hyprdots
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user