My dotfiles for my Linux rice managed with stow and make
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

toggletrackpad 216B

12345678910
  1. #!/bin/bash
  2. device="SynPS/2 Synaptics TouchPad"
  3. state=`xinput list-props "$device" | grep "Device Enabled" | grep -o "[01]$"`
  4. if [ $state == '1' ]; then
  5. xinput disable "$device"
  6. else
  7. xinput enable "$device"
  8. fi