I was wondering where I can find the command line commands for such operations as moving a window between virtual desktops, listing open windows, minimized windows, counting desktops, etc.
......basically what I want to do is write a script that will distribute my open (and not minimized) windows across all my virtual desktops, as thinly as possible. This is because I tend to build up windows in one virtual desktop, but I like to have them spread out over all my (ten!) desktops.
If you care for some pseudocode:
[code:1]
curdesktop=1
for window in $openwindows
do
move $window to desktop $curdesktop
if $curdesktop=$numberofdesktops
curdesktop=1
else
curdesktop=$curdesktops+1
endif
done
for n=1 to $numberofdesktops
do
unclutter desktop $n
done
[/code:1]
Does such a thing already exist?
Thanks for any help/info!
--S