Skip to content

Instantly share code, notes, and snippets.

@DennisLfromGA
Created August 20, 2014 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DennisLfromGA/94314ab98e207ecc1c49 to your computer and use it in GitHub Desktop.
Save DennisLfromGA/94314ab98e207ecc1c49 to your computer and use it in GitHub Desktop.
Shell (.bashrc, etc.) excerpt to turn off the Chromebook's touchpad
# Turnoff the Chromebook Touchpad - always -
# NOTE: 'tpstat.sh' & 'tpoff.sh' should be in your PATH
## Get state of Touchpad - 1=on, 0=off
TP_STATE="`tpstat.sh`"
#
# Turn off Touchpad
if [ "$TP_STATE" = 0 ]; # TOUCHPAD IS OFF
then echo "'touchpad' already off"
else echo "Turning Touchpad off to ignore inadvertent touching..." ; tpoff.sh
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment