r/coolgithubprojects • u/NoPiccolo736 • 1d ago
[Rust] BatteryHub – monitor wireless device battery levels directly on the Windows taskbar
https://github.com/ferloom/Wireless-Device-Battery-MonitorI wanted a simple way to see the battery levels of my wireless peripherals without having to open Logitech G HUB, SteelSeries GG or other manufacturer software.
So I made BatteryHub, a Windows taskbar application written in Rust.
It displays the battery percentages of your wireless mouse, headset, keyboard and controller right next to the Windows clock.
Some supported devices and brands:
- Logitech (LIGHTSPEED, Bolt, Unifying, Bluetooth)
- SteelSeries (Arctis, Arctis Nova, Aerox, Rival)
- Razer mice and keyboards
- Sony DualSense, DualSense Edge and DualShock 4
- Apple AirPods and Beats
- Xbox controllers
- Generic Bluetooth and HID devices
I also focused on keeping it lightweight.
I benchmarked the Rust version against the original C++ implementation on the same PC:
| Metric | Rust | C++ |
|---|---|---|
| Executable size | 368 KB | 1,958 KB |
| Idle RAM | 2.4 MB | 29.4 MB |
| Peak RAM | 17.8 MB | 29.8 MB |
| CPU time/min | ~0.02 s | ~0.64 s |
A few things worth mentioning:
- Automatic battery refresh
- Optional Windows startup
- Install, update and uninstall functionality
- No administrator privileges required
Transparency: This is my Rust rewrite/fork of the original C++ BatteryHub by krisgfx9. The original project deserves credit for the concept, taskbar design and device protocols. My version currently supports fewer devices than the original.
I developed it with help from Claude AI.
GitHub: https://github.com/ferloom/Wireless-Device-Battery-Monitor
I'd love to hear what you think! Especially if you have a wireless peripheral that you could test it with.
1
u/brklynbanana 1d ago
I recently had Claude set me up with a python script for my roccat headset. I'd rather use this. I've sent a PR to have my Roccat Syn Max Air included in working models
1
u/loaferzz 1d ago
Gonna give this a try.
Kris's version messes up my ICUE coolant temp sensor.
Would it be possible to add the option to move it around on the taskbar? Prefer to have this monitor showing on the taskbar of my 2nd monitor instead of the main.
1
u/Hideocaina 20h ago
I had this installed for days, but you weren't the creator—it was under a different name—and I see that their GitHub has disappeared. What happened?