You are on page 1of 1

KeyPress event, serial 42, synthetic NO, window 0xe600003,

root 0x6b6, subw 0x0, time 2232472454, (-1,167), root:(871,683),


state 0x0, keycode 64 (keysym 0xffe7, Meta_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

Find the "keycode" part and covert it to base 16. If you've hit one of the Supers, your
converted code will match one of the (in the example above, four) hex keycodes, and show
Super_L or Super_R instead of the Meta_L shown above.

If you don't have any keys mapped to Super, or it turns out that none of them exist on your
keyboard, then use xev to find the keycode for the key you want to use for Super
(CapsLock might be a good choice for some folks), then use xmodmap or some other tool
in your desktop's UI to set it up. The latter is outside of the scope of this reply, but with
xmodmap, you could just make a file named .Xmodmap in your home directory with this in
it:

! note: replace the 0xff below with your *actual* Super_L key's keycode.
! note: whether to use mod3 or mod4 depends on your environment.
keycode 0xff = Super_L
clear mod4
add mod4 = Super_L

Apply the results with "xmodmap ~/.Xmodmap". Many X startups will automatically apply
these for you. If you're using Ubuntu Unity, look up Startup Applications in the Dash and
add one for that same command. I'm not sure if "~" works in the context, you might want to
try $HOME or just use your home directory there. It ends up producing a file in
~/.config/autostart/xmodmap.desktop like this one (erlkonig = me; put your home in
instead):

$ cat ./.config/autostart/xmodmap.desktop
[Desktop Entry]
Type=Application
Exec=/usr/bin/xmodmap /home/erlkonig/.Xmodmap
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[en_US]=Xmodmap Keymap Settings
Name=Xmodmap Keymap Settings
Comment[en_US]=Set Keyboard Bindings

You might also like