1. Find out the device name
xinput list⎡ Virtual core pointer id=2 [master pointer (3)]⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]⎜ ↳ SynPS/2 Synaptics TouchPad id=13 [slave pointer (2)]⎜ ↳ TPPS/2 IBM TrackPoint id=14 [slave pointer (2)]⎜ ↳ MOSART Semi. 2.4G Keyboard Mouse id=11 [slave pointer (2)]⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Power Button id=6 [slave keyboard (3)] ↳ Video Bus id=7 [slave keyboard (3)] ↳ Video Bus id=8 [slave keyboard (3)] ↳ Sleep Button id=9 [slave keyboard (3)] ↳ AT Translated Set 2 keyboard id=12 [slave keyboard (3)] ↳ ThinkPad Extra Buttons id=15 [slave keyboard (3)] ↳ MOSART Semi. 2.4G Keyboard Mouse id=10 [slave keyboard (3)] ↳ MOSART Semi. 2.4G Keyboard Mouse id=16 [slave keyboard (3)]2. Enable Middle Emulation
xinput set-prop "TPPS/2 IBM TrackPoint" "libinput Middle Emulation Enabled" 13. Set TouchPad right handed mode
xinput set-button-map "TPPS/2 IBM TrackPoint" 3 2 14. To make the change permanently, add the following command at Startup Applications (search in Dash for Startup Applications):
sh -c "xinput set-button-map \"TPPS/2 IBM TrackPoint\" 3 2 1"