feat(quickshell): support x11 bar sessions

This commit is contained in:
2026-09-27 09:33:47 -04:00
parent 3f6473ce17
commit 5c13c8c3e7
10 changed files with 133 additions and 24 deletions
@@ -4,10 +4,10 @@ Block {
id: root
required property var battery
property int percentage: Math.round(battery.percentage * 100)
property int percentage: battery ? Math.round(battery.percentage * 100) : 0
signal detailsRequested(var anchorItem)
visible: battery.ready && battery.isLaptopBattery
visible: battery && battery.ready && battery.isLaptopBattery
interactive: true
blockColor: percentage <= 15 && UPower.onBattery
? Theme.urgent : UPower.onBattery ? Theme.foreground : Theme.secondary