Xdotool

Mit diesem Tool kann man eine Tastatur oder Maus Eingabe machen.

 xdotool keydown alt key Tab keyup alt 
 xdotool key "alt+F1" 
WID=$(xdotool getwindowfocus -f)
xdotool windowactivate $WID
xdotool windowfocus $WID
# hier muss man anschließend ein wenig  warten dann erst kann das Fenster eingaben empfangen

Evtl. kann man so ein einfache Fernbedienung schreiben die bestimmte Programme steuern kann.