Skip to content

Instantly share code, notes, and snippets.

@Ronmi
Created March 18, 2010 07:13
Show Gist options
  • Select an option

  • Save Ronmi/336124 to your computer and use it in GitHub Desktop.

Select an option

Save Ronmi/336124 to your computer and use it in GitHub Desktop.
#!/bin/bash
input=$(xinput list |grep 'SynPS/2 Synaptics TouchPad'|sed -E 's;.*id=([0-9]+).*;\1;'|head -n 1)
xinput set-button-map "${input}" 1 2 3 17 18 19 20 8 9 10 11 12 13 14 15 16
exec xbindkeys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment