I want a script that launches the /mnt/home location (drive partition) and moves it to a spot on my desktop. Currently I modify the script for pc's with different monitor sizes/desktops.
#!/bin/bash
rox -d /mnt/home
xdotool search " */mnt/home" windowactivate windowsize %@ 200 600 windowmove 1150 30
I would love to have a variable X for the window move and a way to detect the desktop size.
Then if the desktop is 1280x1012 X would = 1150
If it were larger than 1280 it would be 1350
Any tips for making that work?
It is not that much code to alter between machines, but if I understood how to make scripts smarter using that desktop size I think it would be slick.
Thanks again for your time.