Skip to content

Instantly share code, notes, and snippets.

@dreeve
Created February 26, 2011 15:27
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dreeve/845301 to your computer and use it in GitHub Desktop.
Save dreeve/845301 to your computer and use it in GitHub Desktop.
using XQuartz (2.6.0), you have to clear Mod1 in order for the Super and Alt keys to take effect. This configuration requires that "Option keys send Alt_L and Alt_R" checkbox is set in Preferences.
clear Mod1
clear Mod4
clear Mod2
keycode 66 = Alt_L
keycode 63 = Super_L
add Mod2 = Alt_L
add Mod4 = Super_L
In XQuartz, I also had to disable "Enable key equivalents under X11" to get mod+space to change xmonad's tiling algorithm.
---------------
Without Mod1 cleared:
dreeve@puggle ~ $ xmodmap 1.8.7
xmodmap: up to 2 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x40), Shift_R (0x44)
lock Caps_Lock (0x41)
control Control_L (0x43), Control_R (0x46)
mod1 Alt_L (0x42), Alt_R (0x45)
mod2 Super_L (0x3f), Meta_R (0x47)
mod3
mod4
mod5
---------------
With Mod1 cleared:
dreeve@puggle ~ $ xmodmap 1.8.7
xmodmap: up to 2 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x40), Shift_R (0x44)
lock Caps_Lock (0x41)
control Control_L (0x43), Control_R (0x46)
mod1
mod2 Alt_L (0x42)
mod3
mod4 Super_L (0x3f)
mod5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment