|
||
---|---|---|
.. | ||
LICENSE | ||
Razer-BatteryLevelRGB.sh | ||
README.md |
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:
- Install razer-cli: instructions.
- 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
. - Edit the script
- Replace the device name with your device's name (you can find it by running
razer-cli -ls
). - Set the low-charge and full-charge color codes to your liking. Defaults to red and green respectively.
- Replace the device name with your device's name (you can find it by running
- Run the script:
./Razer-BatteryLevelRGB.sh
.
- If you want to run the script in the background, refer to this StackOverflow post.
- If you want to run the script with Systemd (as a background process), refer to this StackEx post.
Tested With
razer-cli: 2.2.1
python3-openrazer: 3.8.0
openrazer-daemon: 3.8.0
Python: 3.12.3