Skip to content

Instantly share code, notes, and snippets.

@fathergoose
Created June 5, 2016 00:27
Show Gist options
  • Save fathergoose/047df1698a8a74928a45534d747d51a2 to your computer and use it in GitHub Desktop.
Save fathergoose/047df1698a8a74928a45534d747d51a2 to your computer and use it in GitHub Desktop.
A shell script to toggle tap to click on my Dell XPS13 L321X
#!/bin/bash
a=( $(xinput list-props "CyPS/2 Cypress Trackpad" | grep 'Tap Action') )
if [[ ${a[4]} == "2," ]]
then
xinput set-prop "CyPS/2 Cypress Trackpad" "Synaptics Tap Action" 0
echo Tap to click is now off
else
xinput set-prop "CyPS/2 Cypress Trackpad" "Synaptics Tap Action" 2, 3, 0, 0, 1, 3, 2
echo Tap to click is now on
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment