Advertisement
Guest User

Untitled

a guest
May 6th, 2010
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #!/bin/bash
  2. if [ $1 = "normal" ] ; then
  3. synclient Orientation=0
  4. xrandr -o normal
  5. elif [ $1 = "right" ] ; then
  6. synclient Orientation=3
  7. xrandr -o right
  8. elif [ $1 = "left" ] ; then
  9. synclient Orientation=1
  10. xrandr -o left
  11. elif [ $1 = "inverted" ] ; then
  12. synclient Orientation=2
  13. xrandr -o inverted
  14. else
  15. echo "rotation [normal,right,left,inverted]"
  16. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement