#!/bin/sh # centermouse - center the mouse on the left-most display # for single screen setups, simply use "xdotool mousemove --polar 0 0" xrandr -q | awk -F'[ x+]' '$5==0 && $6==0 { system("xdotool mousemove " $3/2 " " $4/2) }'