# xdotool search --name Konsole windowsize 1280 720 windowmove 20 20 # xdotool search --name python3.6 windowsize 1280 720 windowmove 0 0 # recordmydesktop -x 0 -y 0 --width=1280 --height=720 # https://unix.stackexchange.com/questions/5999/setting-the-window-dimensions-of-a-running-application#6001 # python import Xlib