Do you also find yourself wanting to use your custom keyboard while travelling with your Linux laptop? Without triggering keypresses through the built-in keyboard underneath of course!
I’ll first show you how to disable the built-in laptop keyboard with a bash script. And then automatically disable the laptop keyboard when, and only when, your custom keyboard is plugged in, and enable it again when your custom keyboard is unplugged.
How are you guys, gals and catpeople doing this? Are you using Sway or Hyprland for this? Anyone else using udev already?
I used to do this on my touchscreen laptop, key combo to disable and 4 finger swipe to re-enable.
Wrote a small script that used xinput, ran the script as above.