How to show battery percentage of a Bluetooth connected gadget (headphone)

Is there any way (GUI or Command line) on Ubuntu 16.04 to show battery percentage of a Bluetooth device (in this case headphones) paired and in connection with laptop? Thanks in advance!


Solution 1:

If your device support it, you can get battery percents in console.

cat /sys/class/power_supply/_deviceId_/capacity