Jafner.net/razer-bat
Joey Hafner cd631e0380 Add configurable polling interval
Add docs for running in background, or as systemd unit.
2024-06-02 22:45:52 -07:00
..
LICENSE Initial commit 2024-06-02 22:22:02 -07:00
Razer-BatteryLevelRGB.sh Add configurable polling interval 2024-06-02 22:45:52 -07:00
README.md Add configurable polling interval 2024-06-02 22:45:52 -07:00

Razer Battery Level RGB

See your mouse or keyboard's battery level on your wireless dock.

Installation

Before installing, we need to install some dependencies:

  1. Install razer-cli: instructions.
  2. Download this script and make it executable: curl -s https://raw.githubusercontent.com/Jafner/Razer-BatteryLevelRGB/master/Razer-BatteryLevelRGB.sh > ./ && chmod +x ./Razer-BatteryLevelRGB.sh.
  3. Edit the script
    1. Replace the device name with your device's name (you can find it by running razer-cli -ls).
    2. Set the low-charge and full-charge color codes to your liking. Defaults to red and green respectively.
  4. Run the script: ./Razer-BatteryLevelRGB.sh.

Tested With

razer-cli: 2.2.1
python3-openrazer: 3.8.0
openrazer-daemon: 3.8.0
Python: 3.12.3