Skip to content

add peripheral battery levels for mice and keyboards #159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

tqwewe
Copy link
Contributor

@tqwewe tqwewe commented May 28, 2025

Adds peripheral battery levels to the system info. An indicator is also available under Peripherals.

When the device is plugged in, disconnected, or battery level changes, the UI should reflect this.

image

The current implementation unfortunately makes ashell instantiate UPowerService twice, which isn't ideal for performance, but its working for now.

Did we want peripherals to be a default in the indicators?

@MalpenZibo
Copy link
Owner

I prefer to work on the Bluetooth settings module to make this happen.

Currently, the Bluetooth settings module should already display the battery level, but you need to open the settings menu first and then the Bluetooth menu. I think the whole point is to have the indicator on the main bar.

I had to think about it

@tqwewe
Copy link
Contributor Author

tqwewe commented May 30, 2025

Many peripherals don't depend on bluetooth. For example, my mouse has a small usb receiver I plug in, and works just fine wirelessly with Bluetooth disabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants