Usually battery state is easy to redirect into conky, but when reading state from upower, it can be tricky. Anyway it can redirect the next way. In the example battery is BAT1 in stead of regular BAT0 (inxi -B tells).
If BAT1, then the next lines to .conkyrc file.
If BAT1, then the next lines to .conkyrc file.
- Code:
Battery BAT1
${execpi 30 upower -i /org/freedesktop/UPower/devices/battery_BAT1 | grep state | sed s/^/\${alignr}/ }
${execpi 30 upower -i /org/freedesktop/UPower/devices/battery_BAT1 | grep percentage | sed s/^/\${alignr}/ }
${execpi 30 upower -i /org/freedesktop/UPower/devices/battery_BAT1 | grep time | sed s/^/\${alignr}/ }