Skip to content

Instantly share code, notes, and snippets.

@ynkdir
Created November 1, 2011 12:04
Show Gist options
  • Save ynkdir/1330390 to your computer and use it in GitHub Desktop.
Save ynkdir/1330390 to your computer and use it in GitHub Desktop.
Disable Touchpad
#!/bin/sh
# Disable touchpad
# Reference: http://d.hatena.ne.jp/hosikiti/20101002/1285987199
# Add this script to Startup Applications.
# You can see device list with `xinput list`.
# This is for my PC.
DEVICE="SynPS/2 Synaptics TouchPad"
# ON
# xinput set-prop "$DEVICE" --type=int --format=8 "Device Enabled" 1
# OFF
xinput set-prop "$DEVICE" --type=int --format=8 "Device Enabled" 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment