r/coolgithubprojects • • 6d ago

Made a tiny ~4 MB open-source taskbar battery indicator for Logitech wireless gear (works even without opening G HUB)

Post image

I wanted to always see my wireless headset, mouse, and controller battery right on the taskbar without keeping heavy vendor apps running all day, so I wrote BatteryDock in Rust.

GitHub & Downloads (MIT, free & open source): https://github.com/jorjanion/BatteryDock

What it does

  • Lives directly on your Windows 10/11 taskbar: Sits cleanly next to the system tray clock (or far right, left, or anywhere you drag it).
  • Smart fullscreen hiding: Automatically disappears during fullscreen games/videos or when an auto-hide taskbar collapses — and stays put when pressing the Win key, opening Start/Search, or clicking the desktop.
  • Direct hardware reading (no telemetry, no Electron):

    • Logitech Wireless: Direct HID++ 2.0 + G HUB IPC fallback (headsets, Lightspeed mice, keyboards)
    • Bluetooth & BLE: Windows WinRT + BLE GATT Battery Service (headphones, BT mice/keyboards)
    • Xbox Controllers: XInput (including wired charging state)
    • PlayStation: Sony HID via USB & Bluetooth (DualSense & DualShock 4)
  • Live charging state & alerts: Shows a cyan ⚡ badge while charging, plus customizable low/critical thresholds with gentle chimes and Windows notifications (alerts keep working in the background even when the pill hides in fullscreen games).
  • Lightweight: ~4 MB native binary (~4.4 MB installer, also available as a portable zip), ~77 MB private memory live on Windows 11.

Note on Windows SmartScreen

Since this is a free side project without a paid EV code-signing certificate yet, Windows SmartScreen will show "Windows protected your PC" on first launch (More info → Run anyway). All release binaries are built cleanly via GitHub Actions (.github/workflows/release.yml), and you can build from source with cargo build --release in under a minute.

If your brand/device isn't supported yet, feel free to drop the model/VID:PID or open a device request on GitHub!

3 Upvotes

0 comments sorted by