refactor(quickshell): centralize hardware status polling

This commit is contained in:
2026-09-25 14:04:14 -04:00
parent 67764b4618
commit 56581c54a7
5 changed files with 94 additions and 72 deletions
+3 -2
View File
@@ -12,6 +12,7 @@ PanelWindow {
property var sink: Pipewire.defaultAudioSink
property var source: Pipewire.defaultAudioSource
property var battery: UPower.displayDevice
property var hardware
anchors {
top: true
@@ -150,8 +151,8 @@ PanelWindow {
}
}
Network {}
Backlight {}
Network { service: bar.hardware }
Backlight { service: bar.hardware }
Block {
property int percentage: Math.round(bar.battery.percentage * 100)