You are not logged in.

#1 2012-01-10 14:12:39

abhinandh
Member
Registered: 2008-03-07
Posts: 29

Apply xmodmap to a specific keyboard?

Is there any way I can use an Xmodmap only for a specific keyboard. Suppose I connect an external bluetooth keyboard to my laptop, I want to apply the xmodmap only to the bluetooth keyboard and not the laptop one. Possible?

Should I be looking at xord config or bluez config or xmodmap config?

Thanks.

Last edited by abhinandh (2012-01-10 16:26:54)

Offline

#2 2012-01-10 15:16:51

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: Apply xmodmap to a specific keyboard?

It should be possible by editing /etc/X11/xorg.conf.d/10-evdev.conf  (it is part of Xorg configuration). You should write two section that matches exactly the keyboard you want. You can try to match a precise path ( for example /dev/input/by-id/<your-keyboard> ) and putting the corresponding layout. I have not tested it, but you should have no problem to find more information with man evdev, man xorg, etc...

Offline

#3 2012-01-10 16:19:23

abhinandh
Member
Registered: 2008-03-07
Posts: 29

Re: Apply xmodmap to a specific keyboard?

That method will work for using two totally different layouts. I want to use US qwerty layout on both, but modify certain keys on the bluetooth keyboard. Different xmodmap on the bluetooth one. Is it possible, or should I be creating a new custom layout?

EDIT: changed the original post so my question is now clear. Sorry.

Last edited by abhinandh (2012-01-10 16:28:01)

Offline

Board footer

Powered by FluxBB