Keyboard – How to Disable Laptop Keyboard When Using USB Keyboard

keyboard

I use my USB keyboard in home and now I want disable the laptop keyboard on plug of this keyboard.

How could I achieve this?

I use ArchLinux and DWM.

ps:
i found my device and in udev disable it

xinput disable 'AT Translated Set 2 keyboard'

Best Answer

Write a udev script that floats the built-in keyboard using xinput.

Related Question