Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #sudo apt-get install xdotool
- while true
- do
- #x:0 y:0 screen:0
- x=$(xdotool getmouselocation | cut -d\ -f1 | cut -d\: -f2)
- y=$(xdotool getmouselocation | cut -d\ -f2 | cut -d\ -f1 | cut -d\: -f2)
- if [[ $x -eq 0 && $y -eq 599 ]]
- then
- ./min.sh &
- sleep 1
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement