Modified Colemak keyboard
Hi All,
I have been using a qwerty keyboard for a while now and am about to take the plunge with Colemak. However, I want to "invert" (not sure that is the correct term) the number row so that pushing the key will normally insert the symbol and will insert the number if shift is pushed.
On a qwerty layout, I've done this with xmodmap , here is the relevant section.
...
keycode 10 = exclam 1 exclam 1 onesuperior exclamdown onesuperior
keycode 11 = quotedbl 2 quotedbl 2 twosuperior oneeighth twosuperior
keycode 12 = sterling 3 sterling 3 threesuperior sterling threesuperior
keycode 13 = dollar 4 dollar 4 EuroSign onequarter EuroSign
keycode 14 = percent 5 percent 5 onehalf threeeighths onehalf
keycode 15 = asciicircum 6 asciicircum 6 threequarters fiveeighths threequarters
keycode 16 = ampersand 7 ampersand 7 braceleft seveneighths braceleft
keycode 17 = asterisk 8 asterisk 8 bracketleft trademark bracketleft
keycode 18 = parenleft 9 parenleft 9 bracketright plusminus bracketright
keycode 19 = parenright 0 parenright 0 braceright degree braceright
...
I am not sure where to start doing the same thing with setxkbmap.
I am not re-using xmodmap because I have read that it shouldn't be used any more (stack overflow I thik although I can't remember which post). If I am mistaken please let me know.
I am not the only person who uses the computer so I need the ability to easily switch between qwerty and colamak. SO far I have this but I am a bit stuck as to where to go next.
setxkbmap -layout "en,en" -variant "colemak," -option grp:shifts_toggle
About this post
- Posted
- Archived
- Score
- 8 · 100% up
- Kind
- Text
- ID
- agit3c
4 comments
I'm not sure which file to edit for colemak but with qwerty I know that you can edit
/usr/share/X11/xkb/symbols/usand swap the placement of the numbers and symbols.Before:
After:
Thanks, I'll do that. Is it safe to make changes in
/usr/share? I'm relatively new to arch but I assumed changes in there might get overwritten with an update.I haven't tried it, but the wiki states you can put a copy (only the differences are needed, so it seems) on /usr/local/share/kbd/keymaps/
It's worth giving a look: https://wiki.archlinux.org/index.php/Linux_console/Keyboard_configuration#Creating_a_custom_keymap
I personally use xmodmap together with setxkbmap with no issues. I'd imagine the same xmodmap script you use with qwerty will work on colemak as well, considering both have the same number rows (right?).