How to disable Linux laptop keyboard when custom keyboard is plugged in

https://fhoekstra.eu/posts/linux-disable-internal-laptop-keyboard-when-external-keyboard-plugged-in/

How are you guys, gals and catpeople doing this? Are you using Sway or Hyprland for this? Anyone else using udev already?

14 points · 3 comments · view on lemmy.world

3 Comments

Filetternavn@lemmy.blahaj.zone · 3 pts · 218d

Personally? I just open up the laptop and disconnect the keyboard header. Of course, this only works if you only ever use a USB keyboard with the laptop, but thought I'd add it as a valid method.

pixelprimer@lemmy.world · 2 pts · 218d

Seems like a silly solution but I just use evtest to disable the keyboard. Did a tiny bash script to disable and re-enable the keyboard by just tracking the pid

absGeekNZ@lemmy.nz · 2 pts · 216d

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.