feat: updoot

This commit is contained in:
Kat Inskip 2025-12-04 19:12:49 -08:00
parent 4482ec422a
commit 5686454354
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
9 changed files with 86 additions and 40 deletions

48
quickshell/shell.qml Normal file
View file

@ -0,0 +1,48 @@
import Quickshell
import Quickshell.Io
import QtQuick
Scope {
id: root
property string time
Variants {
model: Quickshell.screens
PanelWindow {
required property var modelData
screen: modelData
anchors {
top: true
left: true
right: true
}
implicitHeight: 30
Text {
font.family: "M+2 Nerd Font Regular"
anchors.centerIn: parent
text: root.time
}
}
}
Process {
id: dateProc
command: ["date", "+%F %T %Z"]
running: true
stdout: StdioCollector {
onStreamFinished: root.time = this.text
}
}
Timer {
interval: 1000
running: true
repeat: true
onTriggered: dateProc.running = true
}
}