Skip to content

Instantly share code, notes, and snippets.

@loggerhead
Last active February 27, 2016 13:05
Show Gist options
  • Save loggerhead/fb6c7d69643c84929e26 to your computer and use it in GitHub Desktop.
Save loggerhead/fb6c7d69643c84929e26 to your computer and use it in GitHub Desktop.
My xcape config
# Append this to `~/.profile`
# Swap `Alt` and `Win`
setxkbmap -option 'altwin:swap_alt_win'
# Map `Caps` to `Escape` and `Control`
setxkbmap -option 'caps:ctrl_modifier'
xcape -e 'Caps_Lock=Escape' -t 300
# Map left `Ctrl` to `F12`
xcape -e 'Control_L=F12'
# Map `Ctrl+p/n/f/b` to arrow key
# gsettings set org.gnome.desktop.interface gtk-key-theme "Emacs"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment