libratbag / piper

GTK application to configure gaming devices
GNU General Public License v2.0
4.58k stars 173 forks source link

Feature request: Execution of a script (shell, python...) on a button press #938

Closed SAMAD101 closed 5 months ago

SAMAD101 commented 5 months ago

I think I'd love to add this feature to this project. Imagine the possibilities of some script exciting with just a mouse button click.

Additional context Actually, I just got a new Logitech G402 and wanted to customize the functionalities of the buttons. Sadly GHub is only available for Windows and Mac. Then my friend from a Discord server told me about this awesome project. I'm so happy to have found this project. It works so seamlessly. And thus, my motivation to help improve this project.

staticssleever668 commented 5 months ago

Hi! This is duplicate of #930, which in turn was also a duplicate. Long story short, this is out of scope of libratbag. Instead, consider making a binding on the mouse with Ctrl+Win+Alt+Shift modifiers, and then configure your system to react to it. This is how a special button is implemented on some Microsoft notebooks and IIRC on some modern Linux notebooks.