sudo apt-get install xdotool export WINDOWID=$(xdotool getwindowfocus) sudo apt-get install imagemagick