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:
##start genymotion emulator and resize and move
/opt/genymobile/genymotion/player --vm-name ff6b4379-c711-415d-8c33-754bdcb65ec$
for (( i=1; i <= 3; i++ ))
while true ; do
if test $(wmctrl -x -l | grep "Genymotion Player" 2>&1 | wc -l) -eq 1 ; then
wmctrl -x -a "Genymotion Player" -e 1,1600,240,320,512 ;
#opens chromium (which is normally maxmimised) to a given profile
chromium-browser --profile-directory=Profile\ 1 "http://ai2.appinventor.mit.edu/#6676677738853640"
wmctrl -r "MIT App Inventor - Chromium" -b remove,maximized_vert,maximized_horz
wmctrl -r "MIT App Inventor - Chromium" -e 0,-1,-1,1548,-1
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