formatter

This commit is contained in:
Zacharias-Brohn
2026-02-24 23:20:11 +01:00
parent 40cd984b6d
commit d56a0260fb
202 changed files with 15037 additions and 15352 deletions
+24 -22
View File
@@ -7,29 +7,31 @@ import Quickshell.Io
import qs.Modules
Singleton {
property int availableUpdates: 0
property int availableUpdates: 0
Timer {
interval: 1
running: true
repeat: true
onTriggered: {
updatesProc.running = true
interval = 5000
}
}
Timer {
interval: 1
repeat: true
running: true
Process {
id: updatesProc
running: false
onTriggered: {
updatesProc.running = true;
interval = 5000;
}
}
command: ["checkupdates"]
stdout: StdioCollector {
onStreamFinished: {
const output = this.text
const lines = output.trim().split("\n").filter(line => line.length > 0)
availableUpdates = lines.length
}
}
}
Process {
id: updatesProc
command: ["checkupdates"]
running: false
stdout: StdioCollector {
onStreamFinished: {
const output = this.text;
const lines = output.trim().split("\n").filter(line => line.length > 0);
availableUpdates = lines.length;
}
}
}
}