A small tool that captures open windows and their positions and generates a script that can be used to launch those windows again at those positions.
Only tools used are xdotool, xwininfo, xprop which are quite common in Linux. The tool is very easy to use and although not 100% accurate it is very easy to tweak in order to bring to your needs.
- Make sure you are in the same directory as the
winlaunch.pyfile. - Run
python winlaunch.py generate-script
A Python script will be generated in the same directory containing a snapshot of all open windows and their location. Feel free to make some alterations to the script since since small errors might be there (terminals tend to all look the same for example).
You can run the script with ./launch_script.py. To get a better undestanding
of the contents of the script, check the API documentation below.
sudo apt-get install xdotool xprop xwininfo
