UPower: QtObject [singleton]

import Quickshell.Services.UPower

Properties

Property Details

[readonly]

devices: ObjectModel<UPowerDevice>

All connected UPower devices.

[readonly]

displayDevice: UPowerDevice

UPower’s DisplayDevice for your system. Can be null.

This is an aggregate device and not a physical one, meaning you will not find it in devices. It is typically the device that is used for displaying information in desktop environments.

[readonly]

onBattery: bool

If the system is currently running on battery power, or discharging.