#!/bin/sh # Primary mouse (right): 13, secondary (left): 10 /usr/bin/xinput set-button-map 10 3 2 1 4 5 6 7 8 9 10 11 12 13