Re:Remapping Caps Lock on OS X Mountain Lion
by naftaliharris on Saturday March 30, 2013 @02:27AM
(#5464659)
My caps-lock gets mapped to escape. On linux, or at least the flavors I'm using, this is super easy: Just drop the following into ~/.Xmodmap
[ Parent
| on HN ]
Re:Remapping Caps Lock on OS X Mountain Lion
by rammark on Saturday March 30, 2013 @04:47AM
(#5464868)
Another option is to run setxkbmap after X starts (using a ~/.xinitrc file or your favorite desktop environment's autorun feature.
'setxkbmap -option caps:esc'
'setxkbmap -option ctrl:nocaps' (my preference)
'setxkbmap -option ctrl:swapcaps'
Debian (and derivatives) users can edit the last line in the /etc/default/keyboard file to do this globally.