Skip to content

Gnome-Shell extension displaying battery percentage for bluetooth devices

License

Notifications You must be signed in to change notification settings

Ser82-png/gnome-bluetooth-battery-indicator

 
 

Repository files navigation

About

Gnome-Shell extension displaying battery percentage for bluetooth devices

https://extensions.gnome.org/extension/3991/bluetooth-battery/

Requirements

  • bluez
  • python3 (ubuntu: python3-dev, fedora: python3-devel)
  • libbluetooth (ubuntu: libbluetooth-dev, fedora: bluez-libs)
  • pybluez (ubuntu: python3-bluez, fedora: python3-bluez

Ubuntu:

sudo apt install bluez libbluetooth-dev python3-dev python3-bluez

Fedora:

sudo dnf install bluez bluez-libs python3-devel python3-bluez

Manual Installation

  1. Clone the repo
git clone git@github.com:MichalW/gnome-bluetooth-battery-indicator.git
  1. Init submodules
git submodule update --init
  1. Copy to extensions
cp -R gnome-bluetooth-battery-indicator ~/.local/share/gnome-shell/extensions/bluetooth-battery@michalw.github.com

Troubleshoot

Show debug log of this plugin: journalctl -f -o cat /usr/bin/gnome-shell

If it failed to show battery percentage

if Get battery levels using bluetoothctl is enabled, run this script to see the error message: https://github.com/MichalW/gnome-bluetooth-battery-indicator/blob/master/scripts/bluetoothctl_battery.sh

if Get battery levels using bluetoothctl is disabled, run this script to see the error message: https://github.com/TheWeirdDev/Bluetooth_Headset_Battery_Level/blob/master/bluetooth_battery.py

Sources

This script is based on the following sources

https://github.com/TheWeirdDev/Bluetooth_Headset_Battery_Level

https://github.com/bjarosze/gnome-bluetooth-quick-connect

About

Gnome-Shell extension displaying battery percentage for bluetooth devices

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 92.5%
  • Makefile 3.8%
  • Shell 3.7%