Battery levels of your wireless mouse, keyboard, headset, controller and JBL speaker, right in the Windows taskbar. One small native executable: no installer, no service, no driver, no account, no telemetry.
Screenshots show the built-in sample devices (--demo).
Project status: 0.1.6, early. The application itself is tested on Windows 11 and the protocol logic is covered by unit tests, but the device protocols have not yet been verified on real hardware. See Supported devices and please report what works.
- Taskbar widget: a borderless, transparent strip with one pill per device (icon, battery, percentage). It never takes focus, hides behind full-screen apps and only uses the gap the taskbar buttons leave free (extra devices collapse into "+N", weakest batteries stay visible). It sizes itself to the taskbar, so it also fits a compact taskbar with small buttons.
- Tray icon that shows the lowest battery level at a glance; every setting lives in its context menu.
- Many sources, one list: Bluetooth, Logitech receivers, Logitech G HUB, gaming peripherals of several brands (Razer, Corsair, HyperX, SteelSeries, ASUS ROG, JBL), game controllers and JBL speakers are merged and de-duplicated.
- Hot-plug: devices appear and disappear as they connect; sleeping devices keep their last level, dimmed.
- Notifications for low battery and (optionally) full charge.
- Windows 11 native: per-monitor DPI aware, follows dark/light theme, multi-monitor.
- Light: a single executable of about 1 MB, around 17 MB of memory, event driven, draws only when something changes.
- Private: no network access except the optional G HUB socket on
127.0.0.1. Devices are only ever asked for their battery level, never configured.
irm https://raw.githubusercontent.com/hitzjano/BatteryWidget/main/install.ps1 | iexDownloads the newest release, verifies its SHA-256 checksum, installs it to
%LOCALAPPDATA%\Programs\BatteryWidget, adds a Start menu shortcut and starts it. From
then on it starts with Windows (untick Start with Windows in the tray menu to stop that).
No admin rights needed; run it again to update. See install.ps1.
- Get
BatteryWidget.exefrom the latest release. - Put it anywhere (for example
%LOCALAPPDATA%\Programs\BatteryWidget\) and run it. - It starts with Windows from then on; to turn that off, untick Start with Windows in the tray icon's menu.
The executable is not code-signed, so SmartScreen may ask for confirmation on first start. A SHA-256 checksum is published with every release.
Requires Rust 1.85 or newer on Windows 10/11.
git clone https://github.com/hitzjano/BatteryWidget.git
cd BatteryWidget
cargo build --release
# → target\release\BatteryWidget.exeCross-compiling from Linux works too (this needs mingw-w64):
rustup target add x86_64-pc-windows-gnu
cargo build --release --target x86_64-pc-windows-gnuStart BatteryWidget.exe. A battery icon appears in the notification area and, as soon
as a device with a known level is found, the widget appears in the taskbar.
| Action | Result |
|---|---|
| Left-click the tray icon | Show or hide the widget |
| Right-click the tray icon or the widget | Device list and settings |
| Position → Free, then drag the widget | Place it anywhere |
Settings in the menu:
| Setting | Options |
|---|---|
| Position | Next to the tray (default), taskbar left (after the weather button, if shown), four screen corners, free |
| Display | Which monitor to use (shown with more than one display) |
| Style | Icon + battery + percentage (default), icon + battery, icon + percentage, icon + battery with the percentage inside |
| Theme | Match Windows, dark, light |
| Show device names | Adds the name to each pill; names are shortened and devices collapse into "+N" if space runs out |
| Notifications | Battery low, fully charged, low threshold 10 to 30 % |
| Sources | Switch each device source on or off |
| Start with Windows | Per-user autostart entry, on by default (switched on at the first start) |
Settings are stored in %LOCALAPPDATA%\BatteryWidget\config.json; a log is written to
app.log in the same folder (--verbose for more detail). --demo shows sample
devices instead of scanning, which is handy for screenshots and UI work. A few values exist only in
the file, for example offset_x to nudge the widget sideways inside the taskbar.
To uninstall, switch off Start with Windows, exit, and delete the executable, the
settings folder %LOCALAPPDATA%\BatteryWidget and, if you used the installer, the Start
menu shortcut (%APPDATA%\Microsoft\Windows\Start Menu\Programs\BatteryWidget.lnk).
Status legend: Implemented means the protocol is implemented and unit-tested against its specification, but not yet confirmed on hardware by the maintainers.
| Source | Devices | Status |
|---|---|---|
| Bluetooth (Classic and LE) | Anything whose battery Windows shows under Bluetooth & devices: headphones, mice, keyboards, pens, controllers | Implemented |
| Logitech HID++ 2.0 | Devices on Logi Bolt, Unifying and LIGHTSPEED receivers, wired and Bluetooth devices (MX, G and PRO series, LIGHTSPEED headsets) | Implemented |
| Logitech HID++ 1.0 | Older Unifying devices | Implemented |
| Logitech G HUB | Everything G HUB lists, while G HUB is running | Implemented |
| PlayStation | DualSense, DualSense Edge, DualShock 4 (USB, Bluetooth, Sony adapter) | Implemented |
| Xbox | Controllers known to Windows.Gaming.Input / XInput |
Implemented |
| Razer | Wireless mice and keyboards using the 90-byte report protocol | Implemented |
| Corsair | Void / HS / Virtuoso headsets; Void Wireless v2, Virtuoso MAX Wireless, HS80 MAX Wireless; Slipstream (Bragi) mice and keyboards | Implemented |
| HyperX | Cloud II Wireless (HP and Kingston), Cloud Stinger 2 Wireless, Cloud Flight, Cloud Alpha Wireless, Cloud Alpha 2 Wireless, Cloud III Wireless, Pulsefire Dart | Implemented |
| SteelSeries | Headsets: Arctis 1 Wireless, Arctis 7 / Pro 2019, Arctis 7+, Arctis 9, Arctis Nova 3P / 3X Wireless, Nova 5 / 5X, Nova 7 / 7X / 7P, Nova Pro Wireless. Mice: Aerox 3 / 5 / 9 Wireless, Prime (Mini) Wireless, Rival 3 Wireless (Gen 2), Rival 650 Wireless | Implemented |
| ASUS ROG / TUF | On their dongle, cable or ROG Omni receiver. Mice: Gladius II / III Wireless (incl. AimPoint, EVA-02), Keris Wireless (incl. EVA, AimPoint), Keris II Ace / Origin, Harpe Ace (Aim Lab, Extreme, Mini), Harpe II Ace, Chakram, Chakram X, Pugio II, Spatha X, Strix Carry, Strix Impact II / III Wireless, TUF Gaming M4 Wireless, TX / TUF Gaming Mini, MD200, MD301. Keyboards: Azoth (incl. Extreme, X), Falchion (incl. RX Low Profile), Strix Scope II 96 (RX) Wireless, Strix Scope RX TKL Wireless, Claymore II. Headsets: Delta II, Pelta, Cetra SpeedNova | Implemented |
| JBL | Quantum 810 Wireless, Quantum 910P Wireless, Quantum 950 Wireless (USB dongle); Charge 3/4/5/6, Flip 4/5/6/7, Xtreme 2/3/4, Pulse 3/4/5, Boombox/2/3, Go 4 (incl. Duo), Clip 5, Tuner 3 speakers (Bluetooth LE, while paired and connected; not the Wi-Fi models, Boombox 4, Xtreme 5, Go 5, Grip, Essential 3 SE) | Implemented |
Good to know:
- Bluetooth levels come from Windows and are often coarse (steps of 10 or 25 %). Windows does not report whether a Bluetooth device is charging; a rising level is shown as charging (estimated).
- JBL dongles do not report whether the headset is charging.
- JBL speakers are asked over their own Bluetooth LE service at most every 5 minutes (part of the Bluetooth source). While BatteryWidget asks, which takes a few seconds, the JBL Portable app cannot connect to the speaker.
- Vendor software (G HUB, iCUE, Synapse, …) may hold a receiver exclusively. BatteryWidget then leaves that receiver alone and retries later.
- Not supported yet: devices whose protocol is not publicly documented well enough to query them safely. Requests with details are welcome.
Protocol details are in docs/PROTOCOLS.md.
crates/core battery-widget-core: all device logic, no UI
├─ bluetooth, hidpp, ghub, vendor, protocol logic (pure, unit-tested on any OS)
│ jbl_ble
├─ win/ Windows I/O: HID, WinRT enumeration, controllers,
│ Bluetooth LE (JBL speakers)
├─ merge fusion of all sources into one device list
└─ hub one worker thread per source → channel → snapshots
crates/app battery-widget: tray icon, Direct2D widget window, settings
Each source runs on its own thread and sends complete readings through a channel. An aggregator merges them and hands the UI an immutable snapshot, only when something changed. The UI thread never blocks on a device. It owns an invisible main window for the tray icon and the menu, and the widget itself: a layered window that is embedded in the taskbar in the taskbar positions (so it stays visible while Windows raises the taskbar for the Start menu and flyouts) and floats as a topmost window otherwise.
cargo test --workspace
cargo clippy --workspace --all-targets -- -D warnings
cargo fmt --allThe unit tests need no hardware and also run on Linux and macOS. See CONTRIBUTING.md for how to add a device.
Protocol knowledge comes from public documentation and the work of open-source projects, in particular Solaar (Logitech HID++), OpenRazer, HeadsetControl, rivalcfg (SteelSeries mice), G-Helper (ASUS ROG), jbl-charge5 and JBLControl (JBL speakers), and jbl-quantum-engine-linux, HeadsetControlLinux and MyJBxHeadsetControl (JBL Quantum).
BatteryWidget is an independent project and is not affiliated with or endorsed by any of the hardware vendors mentioned. All product names are trademarks of their owners.


