mirror of
https://github.com/AquaMorph/dotfiles.git
synced 2026-09-29 20:04:21 +00:00
refactor(quickshell): centralize hardware status polling
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user