mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 23:09:26 -05:00
battery service: add energy rate known-or-not status
This commit is contained in:
@@ -11,6 +11,7 @@ Singleton {
|
||||
id: root
|
||||
property bool available: UPower.displayDevice.isLaptopBattery
|
||||
property var chargeState: UPower.displayDevice.state
|
||||
property bool knownEnergyRate: energyRate != 0 && (chargeState == UPowerDeviceState.Charging || chargeState == UPowerDeviceState.Discharging)
|
||||
property bool isCharging: chargeState == UPowerDeviceState.Charging
|
||||
property bool isPluggedIn: isCharging || chargeState == UPowerDeviceState.PendingCharge
|
||||
property real percentage: UPower.displayDevice?.percentage ?? 1
|
||||
|
||||
Reference in New Issue
Block a user