r/Windhawk • u/wh-updates • 16h ago
Taskbar Wireless Battery Widget 1.0
Taskbar Wireless Battery Widget 1.0
Taskbar Wireless Battery Widget
Display battery levels for supported wireless mice, keyboards, headsets and controllers in the Windows 11 taskbar, or as one system tray icon per device. Hover for details, including the estimated time remaining. In the taskbar, click the battery levels to open a panel with the details of all devices, and right-click them to refresh or show/hide individual devices. Click a tray icon for the same menu. Configure the display mode, refresh interval, low-battery threshold, font size and device spacing in Windhawk. Windhawk manages startup and enabling/disabling the mod.
In taskbar mode, the battery levels are part of the primary taskbar, at the left of its notification area, or above it on a vertical taskbar. On Windows 10, or with a taskbar that isn't the Windows 11 one, tray icons are shown instead.
The devices are queried in a dedicated Windhawk process, and Explorer only shows the battery levels in the taskbar. The mod doesn't run together with the standalone BatteryHub app (formerly Wireless Battery) or its Chinese adaptation, so that the devices aren't queried twice. Exit the standalone app before enabling the mod. If the display does not start, exit that app and disable/re-enable the mod. While the mod is enabled, the standalone app doesn't start.
Two other mods cover parts of this one: BT Battery Monitor shows Bluetooth battery levels in the tray, and Logitech Battery Tray shows Logitech devices in the taskbar, through G HUB and HID++. This mod also reads the Bluetooth levels that Windows exposes and speaks HID++ itself, and adds vendor protocols for many other brands. If Bluetooth or Logitech devices are all you need, one of those mods may be enough. Enabled together with this mod, they show the same devices twice.
Device support and limitations
- The device drivers are ported from BatteryHub, reviewed up to its commit e3dcb8e (November 30, 2026). Brand support does not mean every model is supported, and not every BatteryHub driver is included (see below).
- Vendor-specific battery queries send HID output/feature reports, or serial commands for supported ATK, Razer and Sony headsets, to peripherals and read their replies. These community-derived protocols have not been verified on every supported model. Queries can conflict with vendor utilities that access a device exclusively.
- Periodic queries can wake a device right after it goes to sleep, or keep its lights from turning off. Add such a device to the Devices to exclude setting to stop querying it. Hiding a device in the menu only hides it from the display.
- Drawing tablets are never queried for a standard HID battery level.
- Bluetooth PlayStation controllers are only read after another app (e.g. Steam) has switched them to full reports. The mod doesn't do that itself, because it breaks DirectInput for other apps until the controller is turned off and on.
- Standard Bluetooth battery readings depend on what Windows exposes.
- A phone's battery is read from the status file of Microsoft Phone Link, when Phone Link is set up. The phone itself isn't contacted.
- In taskbar mode low battery is indicated by red text; notification balloons are available in tray mode. Sleep/last-known readings are dimmed.
- The estimated time remaining, or until fully charged, is based on how fast the battery level changed, measured from one level change to the next. It's shown once the measurements span at least 10 minutes, and gaps of more than 30 minutes without a reading, e.g. while the device or the computer sleeps, aren't counted. The rates are kept for each device, so after a restart the estimate is shown right away. Devices that only report coarse levels get no estimate.
Differences from BatteryHub
- Battery queries are only sent to product IDs known to use each protocol, including on vendor IDs that several brands share and that BatteryHub queries as a whole (Glorious, Hitscan, G-Wolves, Kysona and its partner brands, LAMZU, ZOWIE). Logitech, Razer and Corsair vendor IDs belong to one brand each, so their devices are recognized by the HID collections of their protocol (HID++, Razer's 91-byte feature report, Corsair Bragi) instead.
- Not included: drivers that switch a device to another mode or need keep-alive traffic (e.g. Razer Barracuda X (2022), Razer BlackShark V2 Pro (2023), Logitech G435, Turtle Beach), drivers that hold Bluetooth connections (Galaxy Buds, Nothing Ear, Sony and Soundcore headphones, Steam Controller, GameSir Cyclone Pro), Google Fast Pair earbud details, the HeadsetControl integration, BatteryHub's optional auto-detection of shared protocol families, and drivers that query many products of a shared vendor ID or haven't been reviewed for the mod yet (e.g. Keychron mice, Jabra, 8BitDo, NuPhy, Royal Kludge, most VGN devices).
- Some devices are asked less often: the Razer BlackShark V3 / V3 X rate limit (one query per 5 minutes) also counts failed queries, and the ATK Z87 receiver is asked every 10 minutes, also after a failed query.
- AirPods are read by the mod's own receiver, which is off by default (see below).
- The taskbar widget is part of the taskbar's layout, not a window placed over the taskbar, so the task buttons and the tray make room for it.
- BatteryHub's app features, such as battery history, alert rules, renaming and updates, aren't included.
Optional AirPods reception
AirPods BLE reception is off by default. Enable it in settings if needed. It passively receives nearby Apple proximity broadcasts while enabled, without changing pairing or audio settings. Battery levels are approximate, in steps of about 10%; open the charging case near the computer to obtain case readings.
Only AirPods and Beats models that are paired with this PC are shown, with the strongest recent broadcast of each model. Broadcast ownership cannot be verified, so a nearby pair of the same model that belongs to someone else can be shown instead. Readings older than 30 seconds are marked as historical at the next refresh, and entries expire after about two minutes without a broadcast. Raw Bluetooth addresses and encrypted payloads are not written to disk.
Styling with Windows 11 Taskbar Styler
The taskbar widget can be styled with Windows 11 Taskbar Styler. It's a Button named WirelessBatteryWidget, with a StackPanel named Device for each device. A device has a FontIcon named DeviceIcon, a TextBlock named LevelText and a FontIcon named ChargingIcon. For example, the target Button#WirelessBatteryWidget > * > TextBlock#LevelText matches the battery levels.
Credits and license
The mod was originally submitted by TotallyWireless.
GNU GPL v3.0 or later. Based on BatteryHub (formerly Wireless Battery) and the Chinese / G87 adaptation. The original port to a Windhawk mod was done by yaoiyiXu in windhawk-mods#7564. AirPods protocol reference: SpriteOvO/AirPodsDesktop (GPL-3.0-or-later). The dedicated host follows the official Windhawk "Mods as tools" example.
