Removed extra 's' from all services. Made the noctalia color scheme the default

This commit is contained in:
quadbyte 2025-08-17 05:44:59 -04:00
parent b05abca3c1
commit f5a192baba
24 changed files with 79 additions and 89 deletions

View file

@ -0,0 +1,39 @@
pragma Singleton
import QtQuick
import Qt.labs.folderlistmodel
import Quickshell
import Quickshell.Io
Singleton {
id: root
// Public values
property real cpuUsage: 0
property real cpuTemp: 0
property real memoryUsageGb: 0
property real memoryUsagePer: 0
property real diskUsage: 0
// Background process emitting one JSON line per sample
Process {
id: reader
running: true
command: ["sh", "-c", Quickshell.shellDir + "/Bin/system-stats.sh"]
stdout: SplitParser {
onRead: function (line) {
try {
const data = JSON.parse(line)
root.cpuUsage = data.cpu
root.cpuTemp = data.cputemp
root.memoryUsageGb = data.memgb
root.memoryUsagePer = data.memper
root.diskUsage = data.diskper
} catch (e) {
// ignore malformed lines
}
}
}
}
}