sezanzeb / input-remapper

🎮 ⌨ An easy to use tool to change the behaviour of your input devices.
GNU General Public License v3.0
3.75k stars 155 forks source link

Attempting to stop and start mapping from the command line ERROR: Device "AT Translated Set 2 keyboard" is unknown or not an appropriate input device #903

Closed v3ai closed 3 months ago

v3ai commented 3 months ago

I'm attempting to both stop and load presets from the command line.

input-remapper-control --command stop --device "AT Translated Set 2 keyboard" when typing this command I get the error

ERROR: Device "AT Translated Set 2 keyboard" is unknown or not an appropriate input device

What would be the correct way to format AT Translated Set 2 keyboard?

have tried it as "AT Translated Set 2 keyboard" 'AT Translated Set 2 keyboard' "'AT Translated Set 2 keyboard'" (double quotes outside of single quotes)

v3ai commented 3 months ago

Figured out how to do what I wanted to do. What I really wanted was to stop the presets I had whenever I opened my text editor (different keybindings there), and start them on quit. You can make a simple bash script to solve this

#!/bin/bash

input-remapper-control --command stop-all

micro $1

input-remapper-control --command autoload || exit