Ubuntu – Is it possible to have a complex macro layout using multiple keyboards

18.04keyboardkeyboard-layoutshortcut-keysubuntu-mate

I am a video editor and I love to rely mostly on the keyboard. The software I use allows me to create loads of shortcuts for all the commands I like to use. However, for some of these commands, I might have to use a combination that includes CTRL+SHIFT+ALT+SOME KEY
, which slows down the process for me a little bit.

What I would like to do is get another keyboard, where I can use one as the main input keyboard, and use the other one as a macro keyboard where I can assign some of the keys to those complex shortcuts.

The macro keyboards I have managed to find all seem to rely on some software that doesn't have a Linux version (correct me if I am wrong).

So I wanted to see if there is a way where I can replicate the functionality of those macro keyboards on Linux. I will try clarifying in detail what I would like to do.

  1. I have two keyboards.
  2. First one used regularly as an input device for typing or any normal input.
  3. Second one is used to simulate specific key strokes and combinations.
  4. This way, if I click the S key for instance on the first keyboard, it sends an s keystroke, but if I press it on the second keyboard, it sends what key combination I have defined, let's say CTRL+SHIFT+ALT+Y, for instance.

I have looked online and some posts suggested AutoKey or xdotool. Aside from the fact that I couldn't get any of them to work properly, I also don't see a way to define which specific keyboard I would like to use.

I am using Ubuntu 18.04 MATE.

Related Question