#! /bin/bash echo "CLICK ON THE WINDOW" WINID=$(xwininfo | sed -n "s/.*Window id: \(.*\) .*$/\1/p") recordmydesktop --windowid=$WINID