Skip to content

Battery

laiso edited this page Feb 22, 2024 · 1 revision

Battery module

  • Type : internal
  • Description : Shows the battery level in percentage and an icon that changes depending on the status.
  • How to modify :
    • To determine the battery and adapter names, use the upower -e command in your terminal.
      It will return a list of power devices, including batteries and adapters. In my case:
      /org/freedesktop/UPower/devices/battery_BAT0
      /org/freedesktop/UPower/devices/line_power_ADP0
      /org/freedesktop/UPower/devices/DisplayDevice
      
      Replace the battery and adapter parameters in the configuration file with the names of your battery and adapter, respectively
      battery = BAT0
      adapter = ADP0
    • If you want to change the order of the icon and the percentage, replace the following line:
      format-charging = <animation-charging> <label-charging>
      with
      format-charging = <label-charging> <animation-charging>
Clone this wiki locally