LoLei / razer-cli

CLI for configuring Razer devices
GNU General Public License v3.0
80 stars 10 forks source link

DPI STAGES #82

Open RosGtHub opened 3 months ago

RosGtHub commented 3 months ago

Hi. Can you implement the possibility to disable the dpi stages?

LoLei commented 3 months ago

I assume yes, I'd need more info though. Could you elaborate? Why this is a use case, for example?

RosGtHub commented 3 months ago

Sure! For example, some mice like mine have the dpi button which can sometimes be clicked incorrectly and is very annoying. Especially while gaming (FPS or MOBA) and using the same dpi. People would like to disable this behavior because they don't need it at all and can be an issue for gamers like me. Imagine clicking the dpi button everytime you missclick in order to reset the dpi to his original state...definitely not good. Disabling it would be good for alot of cases.

I assume yes, I'd need more info though. Could you elaborate? Why this is a use case, for example?

LoLei commented 2 months ago

I see, thanks.

This would IMO be more of a job for https://github.com/openrazer/openrazer, the driver implementation for the devices. razer-cli is just a command line interface to openrazer.

Most of the existing functions in razer-cli just change one of the existing device settings to a new value, e.g. changing DPI to 5000.

razer-cli does (so far) not map the functionality of specific device buttons to different uses, or disable them.

If you can find out if it's actually possible to disable the DPI stages, or DPI buttons, with openrazer, perhaps we can also implement it in razer-cli.

I would suggest checking out one of the GUI frontends to openrazer, see if perhaps they already have that functionality. If so, it'd be definitely possible to add it to razer-cli. If they do not offer it either, you'd need to do a deep-dive into openrazer itself, or perhaps ask the question in the discussion board there.

Hope that helps 🙂