Startup Genymotion from CLI, resize and move it

My OpenGL for my graphics has been broken for a few weeks, and I have been missing using Genymotion for my AppInventor emulator. Finally fixed the graphics (another story) and Genymotion working once again. Would like a working environment on just one desktop, so need to resize the stock setup for Genymotion and move it over to the right. Here is a little bash script that does the lot:

You need wmctrl installed, use xprop or wmctrl to find the class name of the genymotion window, and you can use a virtualbox command: “VBoxManage list vms” to find the vmname. When run, the script starts up the emulator, checks that the window is there after a brief wait, then resizes it and moves it to the right side of the screen.

I’ve also added the opening of Chromium and sizing of that too, so I can see both windows,

Note my screen/resolution is 1920 x 1080 and I have a toolbar on the left of 32 pixels

Leave a Reply

Your email address will not be published. Required fields are marked *