z3ntu / RazerGenie

Qt application for configuring your Razer devices under GNU/Linux.
GNU General Public License v3.0
385 stars 35 forks source link

display battery level vis Razer Dock color #173

Open xtc0r opened 2 months ago

xtc0r commented 2 months ago

Hello,

on windows my battery level of my Razer Viper Ultimate is shown via the colors of my razer mouse dock. Green = 80-100% ... red = below 15%.

Is anything like this possible via RazerGenie?

z3ntu commented 2 months ago

Hi! Currently this is not possible. Support would need to be added in OpenRazer code, but there we currently have no pairing whatsoever between e.g. the mouse and the Dock, they're just two completely separate devices.

For sure you could script this yourself using the Python API (examples are here: https://github.com/openrazer/openrazer/tree/master/examples), find the mouse and the dock devices, check the battery level e.g. every minute and set the color of the dock accordingly.

If you've made such a script, I'd be happy to include it in the example scripts in the OpenRazer repo, if other people have the same wishes!