SHARE
TWEET

HP-Envy-Toggle-Touchpad-Script

jv2112 Apr 17th, 2016 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #! /bin/zsh
  2. # Toggle Mouse pad off
  3.  
  4. # xinput list --- List Devices
  5. # xinput set-prop 13 "Device Enabled" 0 --- Disable 0 , Enable 1
  6. #
  7. #SYNSTATE=$(xinput list-props 13 | grep Enabled | grep -Eo .)
  8. A=$(xinput | grep 'SynPS/2 Synaptics TouchPad' | cut -f2 | cut -c4,5)
  9.  
  10.  
  11. SYNSTATE=$(xinput list-props $A | grep '138' | cut -f3)
  12. if [ $SYNSTATE = 0 ]; then xinput set-prop $A "Device Enabled" 1
  13. else xinput set-prop $A "Device Enabled" 0; fi
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top