How cngksy/wireless-battery works
Wireless Battery is a Windows taskbar utility that discovers reported battery levels and presents them per device. Its main workflow is the app’s refresh/menu orchestration, battery polling across HID, Windows, and vendor sources, then per-monitor taskbar display and device details. The README also documents settings, startup management, device reporting, localization, and verified update installation. Some orchestration code is omitted from excerpts, so edges for those documented workflows cite the README; the graph does not infer unshown calls.
Main entry points: App.cs App coordinator · Battery.cs Battery polling · Widget.cs Taskbar indicator · Updates.cs Update client
Components 16
App and taskbar UI
- App coordinator
App.cs - Taskbar indicator
Widget.cs - Taskbar placement
Taskbars.cs
Battery sensing
- Battery polling
Battery.cs - Windows HID access
Native.cs - Bluetooth and XInput
WindowsDevices.cs
Vendor integrations
- G HUB reader
GHub.cs - SteelSeries reader
SteelSeries.cs
Settings and updates
- User preferences
UserSettings.cs - Windows startup
Autostart.cs - Update client
Updates.cs
Other components
- Windows user
- GitHub releases
- G HUB service
- SteelSeries GG
- Windows devices
Connections 17
- Windows user → App coordinator: uses menu
README.md - App coordinator → Battery polling: refreshes readings
README.md - Battery polling → Bluetooth and XInput: polls devices
Battery.cs - Battery polling → G HUB reader: polls vendor
Battery.cs - Battery polling → SteelSeries reader: reads keyboard
Battery.cs - Bluetooth and XInput → Windows devices: reads properties
README.md - G HUB reader → G HUB service: queries locally
README.md - SteelSeries reader → SteelSeries GG: queries locally
README.md - App coordinator → Taskbar indicator: updates display
README.md - Taskbar indicator → Taskbar placement: finds placement
Widget.cs - Windows user → Taskbar indicator: hovers devices
README.md - App coordinator → User preferences: loads preferences
App.cs - App coordinator → Windows startup: manages startup
README.md - App coordinator → Update client: checks updates
README.md - Update client → GitHub releases: checks releases
Updates.cs - Windows user → Update client: requests install
README.md - Battery polling → Windows HID access: uses HID channel
Battery.cs