Skip to content

Instantly share code, notes, and snippets.

@alienbogart
Last active September 23, 2018 15:08
Show Gist options
  • Save alienbogart/66b455d87474a09756d10a28b206d09a to your computer and use it in GitHub Desktop.
Save alienbogart/66b455d87474a09756d10a28b206d09a to your computer and use it in GitHub Desktop.
#!/bin/bash
# {{{ clean
# replace the layout with the one in your locale (mine is "br")
setxkbmap -option -layout br
# }}}
# {{{ source
xmodmap /path/to/xmodmaps
# }}}
# {{{ xcape
pkill -fi xcape
# xcape -t 200 -e 'F2=Super_L|Right'
# xcape -t 200 -e 'Super_L=Super_L|Up'
xcape -t 200 -e 'Control_L=Escape'
xcape -t 200 -e 'Alt_L=Tab'
# }}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment