Skip to content

Instantly share code, notes, and snippets.

@HeLiBloks
Created April 28, 2016 19:10
Show Gist options
  • Save HeLiBloks/a77d8bcd0c5f4ffd47d05b47ee880915 to your computer and use it in GitHub Desktop.
Save HeLiBloks/a77d8bcd0c5f4ffd47d05b47ee880915 to your computer and use it in GitHub Desktop.
remap esc and capslock
#this is for a file that should get sourced on startup
#call it with xmodmap ~/.Xmodmap
cat > ~/.Xmodmap << EOF
remove Lock = Caps_Lock
add Lock = Escape
keysym Caps_Lock = Escape
keysym Escape = Caps_Lock
EOF
#or place in .xinitrc:
setxkbmap -option caps:escape
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment