a BUNCH of qml which I havent reviewed yet

This commit is contained in:
2026-10-23 16:19:22 -06:00
parent 7a57f3a0d2
commit 0d297296ca
16 changed files with 921 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
import QtQuick
import Quickshell.Io
// runs a command every 'interval' ms and emits its stdout (polybar module 'interval')
Item {
id: polling
required property var command
property int interval: 1000
signal output(string text)
Process {
id: process
command: polling.command
stdout: StdioCollector {
onStreamFinished: polling.output(this.text)
}
}
Timer {
interval: polling.interval
running: true
repeat: true
triggeredOnStart: true
onTriggered: process.running = true
}
}