Giter Club home page Giter Club logo

maniacx / bluetooth-battery-meter Goto Github PK

View Code? Open in Web Editor NEW
80.0 80.0 11.0 4.57 MB

A Gnome extension featuring indicator icons in system tray, serving as meter for Bluetooth device battery levels and providing detailed battery levels via icon/text in the Bluetooth quick settings menu.

Home Page: https://extensions.gnome.org/extension/6670/bluetooth-battery-meter/

License: GNU General Public License v3.0

JavaScript 97.08% Shell 2.78% CSS 0.13%

bluetooth-battery-meter's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bluetooth-battery-meter's Issues

Add the battery percentage on the system tray

Basically what the title says it would be nice to have the option to see at a glance the battery percentage in numbers ,instead of having just an icon of the connected device with bullets indicating the percentage and the full text percentage hidden in the gnome Bluetooth menu .
image
image

Extension crashes after unlocking

Greetings and thank you for this great extension,

I'm using version 5 right now, and every time I lock my laptop and then unlock, the extension crashes. Here's the error it shows from Extension Manager. I am on Fedora 39 Gnome 45.3 on Wayland. Please let me know if you need any additional information.

Screenshot from 2024-01-20 17-17-27

My system info:

---

## Report details
- **Date generated:**                              2024-01-20 17:20:49

## Hardware Information:
- **Hardware Model:**                              Acer Aspire E5-576G
- **Memory:**                                      16.0 GiB
- **Processor:**                                   Intel® Core™ i5-8250U × 8
- **Graphics:**                                    Intel® UHD Graphics 620 (KBL GT2)
- **Graphics 1:**                                  NVIDIA GeForce MX150
- **Disk Capacity:**                               256.1 GB

## Software Information:
- **Firmware Version:**                            V1.32
- **OS Name:**                                     Fedora Linux 39 (Workstation Edition)
- **OS Build:**                                    (null)
- **OS Type:**                                     64-bit
- **GNOME Version:**                               45.3
- **Windowing System:**                            Wayland
- **Kernel Version:**                              Linux 6.6.11-200.fc39.x86_64

Duplicated icons in QS

All bluetooth devices are duplicated on the QuickSettings BT section:

image

Gnome 46
ArchLinux

bug: Extension sometimes does not show Bluetooth connected icon

I'm not sure if this is the Gnome bug, bluez bug or extension bug.
But I will report it.

My headphones are automatically connected, but it shows as disconnected in Gnome settings & as a result, extension mirrors this status too.
However, it still shows battery percent of the headphone, as a proof that headphones are actually connected.

Screenshot from 2024-04-06 12-43-49
Screenshot from 2024-04-06 12-46-11

Fedora Silverblue 39
Gnome 45.5
Extension v14

When I manually connect the headphones, I don't have this issue. So this only happens when headphones are automatically connected.

Testing GNOME 44

I have created a version compatible with GNOME 42 -44.
It is under the branch GNOME43-44 https://github.com/maniacx/Bluetooth-Battery-Meter/tree/GNOME42-44

Kindly give feedback here, if extension extension works or has some issues/bugs, so that I can submit it for review at Gnome extension website.

To install run ./install.sh.

Don;t know how to install? Read this post #13 (comment)

I have tested it briefy on running Gnome 43 and 44 on Live iso, But cannot test for long as I do not have GNOME43 or GNOME44 as my daily distro. Any help in testing would be appreciated.
Thank you.

[Suggestion] UPower backend?

So, today I accidentally opened Gnome's power manager with my phones connected and was surprised to know that Gnome's settings report the charges of connected bluetooth devices - moreover, connected phones! I've never seen that done anywhere else, especially with a 2009 dumbphone. So I poked around for a bit and figured out that these devices are (roughly) reported by UPower. Seeing the charge of your phone over Bluetooth could be useful if you're not able to install KDE Connect on it.

изображение

P.S. Also, maybe, some kind of device class or MAC based blacklist would be useful for those who do not want to see said charge?

multiple battery levels

Hello

I have sony wf-c700n

On android phone it shows case charge level and also charge level for left and right headphone

Is it possible on linux?

100% battery percent text not displayed properly

Hi and thank you for this extension!

I recently started to use Battery Health Charging and one article about the Bluetooth Battery Meter extension popped the other days. I was previously using the Bluetooth Quick Connect extension, which kinda does the same thing, but yours is more up to date and will probably be maintained for a longer time.

It seems, at least on my side, that I have a display issue when the device's battery is 100%. This happens with/without the Large Text accessibility feature.

With Large Text on:
Screenshot from 2024-01-14 12-43-26

With Large Text off:
Screenshot from 2024-01-14 12-43-52

I changed the css width to 2.6em, and it seems to work, but not sure if that's the proper fix:

.bbm-label-percentage {
  width: 2.6em;
}

Maybe different distros use different UI fonts and this issue appears only on some of them... A general solution would be nice.

System Details Report


Report details

  • Date generated: 2024-01-14 12:55:30

Hardware Information:

  • Hardware Model: ASUSTeK COMPUTER INC. VivoBook_ASUSLaptop X712DA_M712DA
  • Memory: 12.0 GiB
  • Processor: AMD Ryzen™ 5 3500U with Radeon™ Vega Mobile Gfx × 8
  • Graphics: AMD Radeon™ Vega 8 Graphics
  • Disk Capacity: 512.1 GB

Software Information:

  • Firmware Version: X712DA.304
  • OS Name: Fedora Linux 39 (Workstation Edition)
  • OS Build: (null)
  • OS Type: 64-bit
  • GNOME Version: 45.3
  • Windowing System: Wayland
  • Kernel Version: Linux 6.6.9-200.fc39.x86_64

Not showing battery percentage

I have a Logitech mouse that this extension has in the past shown the battery level for. It does not seem to be showing it any more.

I am using Fedora 40 which includes GNOME 46 and is fully up-to-date.

Here's what the Bluetooth quick-settings menu looks like currently:

image

It used to show the battery level for that exact same mouse. It no longer does (obviously).

My extension settings:

image

Here's the About info for the extension:

image

Testing GNOME 42

First of all, i love this extension, thank you for providing it.

After reading that you created a backport for Gnome43-44, i wonder if you could create a backport for Gnome 42.9. This is the current version used in latest Ubuntu 22.04 LTS, which is, by far, the most used distribution and version around.
This would also enable me to use it on a few work-related notebooks :)

I tried to run that branch, but if fails, so i suppose its probably not compatible at all.

Thx

Testing GNOME 43

I have created a version compatible with GNOME 43 -44.
It is under the branch GNOME43-44 https://github.com/maniacx/Bluetooth-Battery-Meter/tree/GNOME43-44

Kindly give feedback here, if extension extension works or has some issues/bugs, so that I can submit it for review at Gnome extension website.

To install run ./install.sh.

Don;t know how to install? Read this post #13 (comment)

I have tested it briefy on running Gnome 43 and 44 on Live iso, But cannot test for long as I do not have GNOME43 or GNOME44 as my daily distro. Any help in testing would be appreciated.
Thank you.

Battery percentage persists after disabling Bluetooth

Expected Behavior:
When Bluetooth is disabled, the battery percentage for connected devices should no longer be displayed.

Actual Behavior:
After disabling Bluetooth, the battery percentage for previously connected devices remains displayed.

Screenshot from 2024-06-29 08-59-51

Screenshot from 2024-06-29 09-00-01

Operating System: Fedora 40
Desktop Environment: Gnome 46

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.