Thursday, April 15, 2010

Redefine the X11 Meta Key in Mac OS X « Tyler Kieft

Redefine the X11 Meta Key in Mac OS X « Tyler Kieft

There is a way to switch which key that Mac OS X recognizes as meta by using an X11 keyboard mapping preference file. First, uncheck the “Use the system keyboard layout” option in X11 preferences. You may also have to disable the “Enable keyboard shortcuts under X11″ option as well. Then, create (or add to) the file ~/.Xmodmap and insert the following six lines:

clear Mod1
clear Mod2
keycode 63 = Mode_switch
keycode 66 = Meta_L
add Mod1 = Meta_L
add Mod2 = Mode_switch

It clears the keymappings for alt and escape and then reassigns them to the reverse of what they were before. Restart X11 and it should pick up the changes.

Saturday, April 10, 2010


My mac starts talking to me

Something strange had happened. I was pressing some combination of buttons in Mac and it started to speak and read everything to me. After some search.... the answer came to light. So, I must have pressed a combination of "option" and F5. You can disable it either press the key combination again, or you can go to System Preference > Universal Access and turn it off as in the figure below.


Powered By Blogger