Ruby framework for manipulating Xwindow windows
This video shows how it works https://www.youtube.com/watch?v=GBjkORt2Vhc
sudo apt-get install libx11-dev libglib2.0-dev libxmu-dev
gem install windows
require 'windows'
p = Windows::Project.new(:default,'~')
p.open_window('chromium-browser').move(:left)
p.open_window('sublime-text-2 .').move(:right)
p.open_window('gnome-terminal').move(:bottom_right).on_top
sleep 5
p.close