Skip to content

Instantly share code, notes, and snippets.

@Dubhead
Created July 27, 2010 14:09
Show Gist options
  • Save Dubhead/492260 to your computer and use it in GitHub Desktop.
Save Dubhead/492260 to your computer and use it in GitHub Desktop.
#!/bin/zsh
# Bind BackSpace key for Caps_Lock.
/usr/bin/xmodmap -e 'keycode 66 = BackSpace'
/usr/bin/xmodmap -e 'remove Lock = BackSpace'
/usr/bin/xset r 66
# Bind Caps_Lock key for BackSpace.
/usr/bin/xmodmap -e 'keycode 22 = Caps_Lock'
/usr/bin/xmodmap -e 'add Lock = Caps_Lock'
/usr/bin/xset -r 22
# eof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment