feat(gpu): add gpu monitor module (amd sysfs + nvidia-smi, usage/vram/temp)

This commit is contained in:
Damocles 2026-04-17 11:15:55 +02:00
parent a2966f51ab
commit ff1644c0bd
6 changed files with 301 additions and 2 deletions

View file

@ -58,6 +58,9 @@ QtObject {
warm: 80,
hot: 90
})
property var gpu: ({
enable: true
})
property var cpu: ({
enable: true
})
@ -94,7 +97,7 @@ QtObject {
// All module keys that have an enable flag used to default-enable anything
// not explicitly mentioned in modules.json
readonly property var _moduleKeys: ["workspaces", "tray", "windowTitle", "clock", "notifications", "mpris", "volume", "bluetooth", "backlight", "network", "powerProfile", "idleInhibitor", "weather", "temperature", "cpu", "memory", "disk", "battery", "privacy", "screenCorners", "power", "backgroundOverlay", "overviewBackdrop"]
readonly property var _moduleKeys: ["workspaces", "tray", "windowTitle", "clock", "notifications", "mpris", "volume", "bluetooth", "backlight", "network", "powerProfile", "idleInhibitor", "weather", "temperature", "gpu", "cpu", "memory", "disk", "battery", "privacy", "screenCorners", "power", "backgroundOverlay", "overviewBackdrop"]
// Fallback: if modules.json doesn't exist, enable everything
Component.onCompleted: _apply("{}")