Click the Menu button
Search for Desktop Settings and open it
Click Windows
Click Window Manager
Select Compiz from the list
Click Configure Compiz to adjust its settings
Click the Menu button
Click the Menu button
Search for Desktop Settings and open it
Click Window Manager
Select Compiz from the list
Install package xdotool
sudo apt-get install xdotool
Now run following command to get X,Y coordinates of mouse cursor
xdotool getmouselocation
Output will be like this
x:1285 y:10 screen:0