Imported from the Apple Support Forums via the Wayback Machine 🔗
Is there a way to make X11 remap the ctrl key to the Command key for apps like The Gimp and Inkscape?
I have given up trying to make these apps recognize the Command key. Inkscape allows you to alter the keyboard shortcuts (you have to dig through the package contents of the app to get to the default.xml file with the key bindings). But the Command key is not a viable modifier (neither is Super_L, Meta_L, or Multi_Key). I'm just hoping X11 will allow for the remap.
Imported from the Apple Support Forums via the Wayback Machine 🔗
Hi Jonathan,
By default, the Command key acts as a "Meta" key in X11. If you don't need Meta key, then you can use xmodmap command to make Command key act as a Control key.
Create a file "mapfile" which contains the following two lines:
keycode 63 = Control_L add Control = Control_L
then in xterm run the following command:
xmodmap mapfile
Now the Command key should act as a Control key (you must uncheck "Enable keyboard shortcuts under X11" in the X11 Preferences).
If this satisfies you, then rename "mapfile" to ".Xmodmap" and move it into your home directory. Then it will automatically take effect next time you start X11.
0
Mac-oholic·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Thanks it worked like a charm! You have saved me from many future headaches!