Advertisement
GuessGen

tool.sh

Apr 21st, 2012
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.29 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #sudo apt-get install xdotool
  4.  
  5. while true
  6. do
  7.     #x:0 y:0 screen:0
  8.     x=$(xdotool getmouselocation | cut -d\  -f1 | cut -d\: -f2)
  9.     y=$(xdotool getmouselocation | cut -d\  -f2 | cut -d\  -f1 | cut -d\: -f2) 
  10.  
  11.     if [[ $x -eq 0 && $y -eq 599 ]]
  12.     then
  13.         ./min.sh & 
  14.         sleep 1
  15.     fi
  16. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement