Hi Paul!
On 03/14/2013 02:01 AM, Paul Harris wrote:
Is it possible to do something like what Windows does? ie when
switching to one screen, bring the windows that were on the second
screen onto the primary screen?
Or something smarter?
man wmctrl
http://linux.die.net/man/1/wmctrl
Example script (didn't test, wrote it on the email itself:)
#!/bin/bash
windows=`wmctrl -l | cut -d" " -f1` # will make a list of all windows in
all workspaces
for w in $windows; do
wmctrl -r $w -e -1,0,0,-1,-1 # move window $w top right corner to
pos 0,0 and not change other stuff.
done
wmctrl does everything you want, and probably more. You can then make an
entry on the menu, and bind a keyboard combination to it.
HTH,
Renato.