Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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'
share|improve this question
    
May I ask why you want to accomplish this? –  jippie May 30 '12 at 20:51
    
@jippie some times, some people work with my laptop keyboard and its bad :D i use my keyboard and monitor –  Efazati Jun 4 '12 at 2:25

1 Answer 1

up vote 0 down vote accepted

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.