Swapping Apple and Ctrl Keys: Difference between revisions
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
! Map key 37 (left ctrl) to Super_L (i.e. 'cmd') | ! Map key 37 (left ctrl) to Super_L (i.e. 'cmd') | ||
keycode 37 = Super_L | keycode 37 = Super_L | ||
! Map key 133 (left cmd) to Control_L (i.e. 'ctrl) | ! Map key 133 (left cmd) to Control_L (i.e. 'ctrl') | ||
keycode 133 = Control_L | keycode 133 = Control_L | ||
! And update modifier settings | ! And update modifier settings |
Revision as of 16:20, 6 October 2011
In the terminal enter:
cat > ~/.xmodmaprc
! Erase existing bindings
clear Control
clear Mod4
! Map key 37 (left ctrl) to Super_L (i.e. 'cmd')
keycode 37 = Super_L
! Map key 133 (left cmd) to Control_L (i.e. 'ctrl')
keycode 133 = Control_L
! And update modifier settings
add control = Control_L
add mod4 = Super_L
Press ctrl+c and log out and in. Upon login Gnome will ask to accept the .xmodmaprc file. Click on the load button. Done.