Quickshell


UPower: QtObject

singleton
import Quickshell.Services.UPower
  • devices ObjectModel <UPowerDevice>
    readonly

    All connected UPower devices.

  • displayDevice UPowerDevice
    readonly

    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 Go to devices. It is typically the device that is used for displaying information in desktop environments.

  • onBattery bool
    readonly

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