kriomant / ch57x-keyboard-tool

Utility for programming ch57x small keyboard
MIT License
500 stars 61 forks source link

Associate the execution of a program/script with a specific button press #55

Closed GHenry21 closed 7 months ago

GHenry21 commented 8 months ago

Add the function to map a specific button to run a program/script in order to map homeassistant script via api

kriomant commented 7 months ago

This tool does not handle key presses by itself. All it does it writes bindings to keyboard and then exists. Keyboard itself cannot run scripts. While I can add such functionality to this tool, I don't think it's a good idea. There are plenty of automation tools already.

What I offer you to do:

  1. Assing some strange key combination you don't usually use, e.g. alt-shift-ctrl-1
  2. Use third-party software, like BetterTouchTool or any other, to do any action when this key combination is pressed
  3. Done