Razer Mouse Battery Level Tray Indicator
Go to file
Timofey Gelazoniya 14c87b57c8
refactor: abstract check battery locgic into mod
2024-08-29 20:30:42 +03:00
img init 2024-08-27 21:08:03 +03:00
src refactor: abstract check battery locgic into mod 2024-08-29 20:30:42 +03:00
.gitignore init 2024-08-27 21:08:03 +03:00
Cargo.lock init 2024-08-27 21:08:03 +03:00
Cargo.toml init 2024-08-27 21:08:03 +03:00
LICENSE init 2024-08-27 21:08:03 +03:00
README.md init 2024-08-27 21:08:03 +03:00

README.md

razer-battery-report

Razer Battery Level Tray¹ Indicator

stdout

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.

This works pretty well on Windows, should work on Linux if you add udev rule to get access to usb devices (see here). But I haven't tested yet.

¹ — Tray feature coming soon

Usage

Downloading a Prebuilt Binary

Todo

Building from Source

To build, you must have Rust and Git installed on your system.

  1. Clone this repository: git clone https://github.com/xzeldon/razer-battery-report.git
  2. Navigate into your local repository: cd razer-battery-report
  3. Build: cargo build razer-battery-report --release
  4. Executable will be located at target/release/razer-battery-report

Adding new devices yourself

  • add device with name, pid, interface, usage_page, usage to devices.rs
  • add transaction_id to switch statement in DeviceInfo in devices.rs

You can grab pid and other data from the openrazer

Todo

  • Tray Applet
  • 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