Joined: 18 Nov 2013
|Posted: Thu May 15, 2014 5:00 am Post subject: different kep mappings for different keyboards
I have a laptop that binds physical caps lock to control key, and physical control key to "Hyper" key.
And I use xmodmap to do the trick:
keycode 37 = Hyper_L
keycode 66 = Control_L
add mod1 = Alt_L
add control = Control_L
add control = Control_R
add mod3 = Hyper_L
add mod3 = Hyper_R
add mod4 = Super_L
add mod4 = Super_R
For now this setting applies to both my laptop keyboard and an external keyboard and both of them works fine.
But I'm considering purchasing a HHKB pro2, which has its control key places on the place where a caps lock usually takes.
(see the keyboard layout here: https://elitekeyboards.com/proddata/doc/hhkbp2_basic_layout.png)
So I cannot apply the same config on this keyboard and need a separate keyboard config for this keyboard.
Is xmodmap capable of doing this? Or can you recommend me some othre solutions? Thanks.