Skip to content

M_power

vbextreme edited this page Sep 4, 2018 · 1 revision

Power config wiki

Show power, battery, status

Module Specific Attribute

# device name in /sys/class/power_supply which vontains uevent
powersupply = BAT0

# blink when capacity < blink.on %
blink.on = 15

Enviroment

$0 voltage min in V
$1 voltage now in V
$2 capacity in % 
$3 energy full W/h
$4 energy now W/h
$5 power now W
$6 status 
$7 hours time left
$8 minutes time left

Formatting

for formatting enviroment

# double
format[0] = 5.2
format[1] = 5.2
# int
format[2] = 3
#double
format[3] = 7.2
format[4] = 7.2
format[5] = 7.2
# string
format[6] = ""
# int
format[7] = 2
format[8] = 2

Icon

# display on discharging % of capacity
icon[0] = "▁"
icon[1] = "▂"
icon[2] = "▃"
icon[3] = "▄"
icon[4] = "▅"
icon[5] = "▆"
icon[6] = "▇"
icon[7] = "█"
# display on charging
icon[8] = "🔋" 

Example

show current icon with capacity and hh:mm extimate battery

text.long = "$@ $2% $7:$8"
Clone this wiki locally