#!/bin/bash xdotool mousemove \ $(xdpyinfo | \ perl -wne 'next unless /dimensions: ([0-9]+)x([0-9]+)/; print "$1 $2"; exit')