These are two simple programs that allow you to save the size and positions of the windows in your desktop environment into a file and then load the file and move and resize the windows automatically.
Open your programs, set up your windows the way you like them and run the "Save Window Positions" program. You can later recall the sizes and positions of the windows by running the "Load Window Positions" program.
You can use the two programs from a command line and include them in other scripts, assign keyboard shortcuts using your desktop environment settings, auto-load them, anything you care about. The interface is pretty simple:
save-window-positions [path-to-savefile]
and load-window-positions [path-to-savefile]
If you don't specify the filename, the default ~/.config/window-positions/window.json
will be used
Clone this git repository and use the Makefile:
git clone https://github.com/rvega/window-positions.git
cd window-positions
sudo make install-dependencies
sudo make install-custom-wmctrl ## Optional, read below.
sudo make install
This will install to /usr/local/ by default. Read the Makefile to change the path and for other goodies.
These programs use the excellent wmctrl under the hood. Unfortunately, the default version of wmctrl does not support minimizing windows. There is a lesser known version of wmctrl here created by github user geekless that allows for minimizing windows. If you want to use that version of wmctrl instead of the one that comes with your Linux distro, just do make install-custom-wmctrl
.
Create a new entry on this issue tracker, I'll try to respond ASAP.
Copyright (C) 2015 Rafael Vega [email protected]
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.