mirror of
https://github.com/xzeldon/razer-battery-report.git
synced 2024-12-26 05:55:48 +00:00
Razer Mouse Battery Level Tray Indicator
.github/workflows | ||
assets | ||
img | ||
src | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE | ||
README.md |
razer-battery-report
Razer Battery Level Tray Indicator
Show your wireless Razer devices battery levels in your system tray.
This is a work in progress and currently support only Razer DeathAdder V3 Pro and Razer DeathAdder V3 HyperSpeed.
Currently, this works only on Windows.
Usage
Installation
- Download
razer-battery-report.exe
from latest release - Run
razer-battery-report.exe
- If you want a start menu shortcut you can make one yourself! Simply right-click
razer-battery-report.exe
and select "Pin to Start". This will automatically create a shortcut in %appdata%\Microsoft\Windows\Start Menu\Programs.
Building from Source
To build, you must have Rust and Git installed on your system.
- Clone this repository:
git clone https://github.com/xzeldon/razer-battery-report.git
- Navigate into your local repository:
cd razer-battery-report
- Build:
cargo build --release
- Executable will be located at
target/release/razer-battery-report.exe
Adding new devices yourself
- add device with
name
,pid
,interface
,usage_page
,usage
to devices.rs - add
transaction_id
to switch statement inDeviceInfo
in devices.rs
You can grab
pid
and other data from the openrazer
Todo
- Tray Applet
- Force update devices button in tray menu
- Colored tray icons for different battery levels
- Show log window button in tray menu
- Further reduce CPU usage by using Event Loop Proxy events (more info here)
- Prebuilt Binary
- Command Line Arguments for update frequency
- Support for other Razer Devices (I only have DeathAdder V3 Pro, so I won't be able to test it with other devices)
Acknowledgments
- Linux Drivers for Razer devices: https://github.com/openrazer/openrazer
- This python script: https://github.com/spozer/razer-battery-checker
- 🖱️ Logitech Battery Level Tray Indicator (Elem): https://github.com/Fuwn/elem