How can you change successfully Ion3's command key to Mod3+ that is the Windows key at the left-hand-side?

I put META="Mod3+" at the beginning of my /etc/X11/Ion/cfg_ion.lua, but Meta remains to be my command key. I use Emacs which is the reason I want to change the location of the command key.

The following is my current unsuccessful solution.

The script which I run:

#filename: start.sh which I put to gnome-session-properties


/bin/sh /usr/local/sbin/session.bash

The .xmodmap -code

#filename: session.bash
! make left-window key another meta
remove Super_L
keycode 133 = Control_R

remove Lock = Caps_Lock
keycode 66 = Control_R

I think xmodmap is what you need. It has explicit support for Meta keys, it's cross-platform and "window" manager independent.

Consider also mapping CTRL to CAPS LOCK, I'm sure you'll appreciate it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.