Skip to content

Instantly share code, notes, and snippets.

@patricksimpson
Created February 10, 2020 03:32
Show Gist options
  • Save patricksimpson/2fcccf7ca051ce0865957f665545bc77 to your computer and use it in GitHub Desktop.
Save patricksimpson/2fcccf7ca051ce0865957f665545bc77 to your computer and use it in GitHub Desktop.
xev | grep -A2 --line-buffered '^KeyRelease' | sed -n '/keycode /s/^.*keycode \([0-9]*\).* (.*, \(.*\)).*$/\1 \2/p'
xmodmap -e "keycode 133 = Alt_L"
xmodmap -e "keycode 37 = Control_L"
xmodmap -e "keycode 64 = Control_L"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment