View previous topic :: View next topic |
Author |
Message |
paulj Guru


Joined: 30 Sep 2004 Posts: 526 Location: Wales, UK
|
Posted: Sat Dec 22, 2012 8:12 am Post subject: [Solved] Creating "Keyboard Models" in kde / X |
|
|
I have purchased a steelseries 6GV2 keyboard, which I am very happy about. I do like the mechanical keys (who said I am retro! ).
Has anyone else here tuned the setup for this keyboard? I have two keys where the output is transposed and I would like to modify the setup to fix this (although my fingers will need retraining as they automatically go for the current locations!).
I'm off to study xkb configuration, and in the absence of information from anyone else, I will post the results here (or on the wiki) for others.
Last edited by paulj on Sun Dec 23, 2012 7:46 am; edited 1 time in total |
|
Back to top |
|
 |
paulj Guru


Joined: 30 Sep 2004 Posts: 526 Location: Wales, UK
|
Posted: Sat Dec 22, 2012 6:32 pm Post subject: |
|
|
Ok. For X configuration, at a user level:
I created a file ~/.XModmap with the following contents:
Code: | keycode 27 = r R r R sterling registered sterling registered r R sterling registered
keycode 51 = grave notsign grave notsign bar bar bar
keycode 49 = numbersign asciitilde numbersign asciitilde dead_grave dead_breve dead_grave
|
The first code (27) maps the sterling sign on the R key, the other two swap the two keys. The file is called through xmodmap:
for testing, and is called by xinitrc without any further configuration during xorg startup.
So I am happy with X, I now need to fix it in the virtual terminals, as there the original mapping is still functional!
Off for more study...! |
|
Back to top |
|
 |
paulj Guru


Joined: 30 Sep 2004 Posts: 526 Location: Wales, UK
|
Posted: Sun Dec 23, 2012 7:46 am Post subject: |
|
|
Top fix the console, I ended up copying /usr/share/keymaps/i386/qwerty/uk.map.gz to a new file (uk_ss6GV2.map.gz) and swapping the output for keycodes 41 and 43. I then updated /etc/conf.d/keymaps:
Code: | # Use keymap to specify the default console keymap. There is a complete tree
# of keymaps in /usr/share/keymaps to choose from.
keymap="uk_ss6GV2"
|
This now works from boot up, and should be persistent through upgrades of sys-apps/kbd.
Edit: One point (but not problem) I didn't manage to clarify - the key codes for the two offending keys are different in X and the console. |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|