Advertisement
fbcyborg

Untitled

Mar 12th, 2012
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.31 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. AUTH=$(echo /var/run/xauth/*)
  4. DISPLAY=:0
  5.  
  6. cp $AUTH /root/.Xauthority
  7. export DISPLAY
  8.  
  9. if [ $(/usr/bin/synclient -l | grep TouchpadOff | awk '{print $3}') != "1" ]; then
  10.     /usr/bin/synclient TouchpadOff=1;
  11. else
  12.     /usr/bin/synclient TouchpadOff=0;
  13. fi
  14.  
  15. rm /root/.Xauthority
  16. unset DISPLAY
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement