corecoding / Vitals

A glimpse into your computer's temperature, voltage, fan speed, memory usage and CPU load.
https://extensions.gnome.org/extension/1460/vitals/
GNU General Public License v2.0
1.49k stars 95 forks source link

Add the battery of bluetooth devices like headsets, keyboards, etc #393

Open Zac8668 opened 11 months ago

Zac8668 commented 11 months ago

Has this issue been covered in the Wiki?

Is there an existing issue reported already?

Describe the new feature you would like

It would be nice to have Vitals show the battery of bluetooth devices, like headsets, keyboards, mouses, etc Not sure if it is in the scope of the project to add this, but as it would be nice for me to have it, I'm creating an issue.

I use another extension for this purpose, but it would be nice to have it on just one.

Some visuals of the feature: image

corecoding commented 10 months ago

What other extension do you use? This wiki entry talks about it - ultimately battery info would need to be in /proc or /sys. Are you aware of the battery info being exposed in these directories?

rascheel commented 1 month ago

I think upower would be the proper way to get access to device battery information. It exposes them on the dbus org.freedesktop.UPower, but I think it also has a /sys interface (haven't checked).

That said, there are already extensions that integrate with upower so not sure it's worth the effort: https://extensions.gnome.org/extension/5165/upower-battery/