flozz / rivalcfg

CLI tool and Python library to configure SteelSeries gaming mice
https://flozz.github.io/rivalcfg/
Do What The F*ck You Want To Public License
761 stars 62 forks source link

Request: add a command to dump udev config to stdout #157

Closed ali1234 closed 3 years ago

ali1234 commented 3 years ago

It is tricky to run a script installed by pip --user as root because sudo changes the environment. This problem would be mitigated if I could do something like:

rivalcfg --dump-udev | sudo tee /etc/udev/rules.d/99-steelseries.rules && sudo udevadm control --reload
flozz commented 3 years ago

You are right... and this can probably be useful for packagers too... :)