#/bin/bash WID=`xdotool search "Mozilla Firefox" | head -1` xdotool windowactivate $WID xdotool type password