feat(gpu): add cardwire integration and gpu widget

This commit is contained in:
tux
2026-08-25 00:38:14 +05:30
parent 4453c280bf
commit c9310e802b
10 changed files with 709 additions and 24 deletions

23
modules/bar/GPUWidget.qml Normal file
View File

@@ -0,0 +1,23 @@
pragma ComponentBehavior: Bound
import Quickshell
import qs.config
import qs.ui
import qs.services
BarButton {
id: root
hoverHighlight: false
pointerCursor: false
iconSource: GPU.icon
visible: GPU.connected && GPU.gpu !== null
opacity: GPU.gpu !== null && GPU.gpu.known ? 1 : 0
label: {
if (!GPU.gpu)
return "NA";
return GPU.gpu.blocked ? "Blocked" : "Active";
}
}