Skip to content

Instantly share code, notes, and snippets.

@abairo
Last active January 31, 2019 13:55
Show Gist options
  • Save abairo/fa3b306b1878c8a4163b14f124518246 to your computer and use it in GitHub Desktop.
Save abairo/fa3b306b1878c8a4163b14f124518246 to your computer and use it in GitHub Desktop.
https://turanct.wordpress.com/2013/02/14/swap-left-ctrl-and-alt-keys-on-ubuntu-and-other-distros/
Create a file in your home dir: ~/.Xmodmap and put this in it:
clear control
clear mod1
keycode 37 = Alt_L Meta_L
keycode 64 = Control_L
add control = Control_L Control_R
add mod1 = Alt_L Meta_L
# I3WM - Fix dead keys not work
setxkbmap -layout us -variant intl
xmodmap .Xmodmap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment