Guest User

Untitled

a guest
Nov 21st, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. xinput list
  2. ...
  3. ⎜ ↳ TPPS/2 IBM TrackPoint id=15 [slave pointer (2)]
  4. ⎜ ↳ SynPS/2 Synaptics TouchPad id=13 [slave pointer (2)]
  5.  
  6. xinput set-prop 15 "Device Enabled" 1
  7. xinput set-prop 13 "Device Enabled" 1
  8.  
  9. xinput set-prop 15 "Device Enabled" 0
  10. xinput set-prop 13 "Device Enabled" 0
  11.  
  12. #!/bin/bash
  13. id=$(xinput | grep -i "TouchPad" | cut -f 2 | cut -d= -f 2)
  14. status=$(xinput --list-props $id | grep "Device Enabled" | cut -f 3)
  15. if [ $status -eq 1 ]; then
  16. xinput --disable $id
  17. else
  18. xinput --enable $id
  19. fi
Add Comment
Please, Sign In to add comment