GNOME Shell extension that displays the battery charge of your wireless mouse in the top panel.
- 🖱️ Shows real-time mouse battery percentage in the top panel
- 📱 Supports multiple input devices
- 🔄 Auto-refreshes every 30 seconds
- 💾 Saves selected device to
device.config - 🎯 Easy device switching from the dropdown menu
- Click on the mouse icon in the top panel to open the menu
- Select "Load Devices" to see available devices
- Choose your mouse device from the list
- The selected device will be saved and automatically loaded on next startup
- Use "Refresh Battery" to manually update the battery status
The extension provides a clean popup menu with:
- Current device name display
- Load Devices button to discover all connected devices
- Device selection menu
- Refresh Battery button for manual updates
- Uses
upowercommand to query device battery information - Configuration stored in
~/.local/share/gnome-shell/extensions/mouse-charge@github.com/device.config - Python scripts handle device discovery and battery status queries
- Periodic updates every 30 seconds with manual refresh option
extension.js- Main extension codecharge_info.py- Battery information retrieval scriptchecker_device.py- Device discovery scriptdevice.config- Configuration file storing selected devicemetadata.json- Extension metadatastylesheet.css- UI styling

