56 lines
1.1 KiB
QML
56 lines
1.1 KiB
QML
//@ pragma IconTheme Adwaita
|
|
|
|
import Quickshell
|
|
import Quickshell.Wayland
|
|
import Quickshell.Io
|
|
import Quickshell.Widgets
|
|
import QtQuick
|
|
import QtQuick.Layouts
|
|
import QtQuick.Controls
|
|
import "../Config"
|
|
|
|
PanelWindow {
|
|
anchors {
|
|
bottom: true
|
|
left: true
|
|
}
|
|
|
|
width: text.width + 20
|
|
color: "transparent"
|
|
|
|
|
|
Rectangle {
|
|
anchors.fill: parent
|
|
|
|
topRightRadius: 20
|
|
opacity: 0.95
|
|
color: Colours.colour1
|
|
|
|
Text {
|
|
id: text
|
|
anchors.centerIn: parent
|
|
color: Colours.foreground
|
|
font.family: "Departure Mono"
|
|
font.pixelSize: 50
|
|
|
|
Process {
|
|
id: dateProc
|
|
|
|
command: ["date"]
|
|
running: true
|
|
|
|
stdout: StdioCollector {
|
|
onStreamFinished: clock.text = this.text
|
|
}
|
|
}
|
|
|
|
Timer {
|
|
interval: 1000
|
|
running: true
|
|
repeat: true
|
|
onTriggered: text.text = Qt.formatDateTime(new Date(), "HH:mm")
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|