#!/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