#!/bin/bash # This is useful on dell-inspiron. # On my zareason laptop, there's a disable button that works better. # xinput set-prop "ImPS/2 ALPS GlidePoint" "Device Enabled" 0 # This worked on Mint 18.2, perhaps earlier # xinput set-prop "AlpsPS/2 ALPS DualPoint TouchPad" "Device Enabled" 0 # This works on Mint 18.3 case "$(hostname)" in dstromberg-precision-3530) xinput set-prop "DELL0820:00 044E:121F Touchpad" "Device Enabled" 0 xinput set-prop "DELL0820:00 044E:121F Mouse" "Device Enabled" 0 ;; dell-inspiron-1545) # At home xinput set-prop "AlpsPS/2 ALPS GlidePoint" "Device Enabled" 0 ;; dstromberg-inspiron-5570) # At Grokstream # Obtained the name from 'xinput list' xinput set-prop "DELL0810:00 044E:120A Touchpad" "Device Enabled" 0 ;; zareason-strata7440) echo 'Just use the button :)' ;; *) echo "$0: Unrecognized hostname: $(hostname)" 1>&2 exit 1 ;; esac