You are not logged in.

1

Friday, September 3rd 2004, 12:40am

virtual desktop commands?

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

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

2

Friday, September 3rd 2004, 7:46pm

You could check the DCOP interface of KWin and Kicker

Cheers,
_
Qt/KDE Developer
Debian User

Amoeba

Trainee

Posts: 115

Location: http://seattle.wa.u$

Occupation: Urban guerilla

  • Send private message

3

Friday, September 3rd 2004, 8:12pm

If you're using KDE 3.3, a new feature was introcuded to open programs where you want, how you want....

control center --> Desktop --> Window-specific settings

This is probably my new favourite feature.
-- rm -fr /etc/whitehouse
-- Gentoo | udev | Xorg 6.8.2 | 2.6.14-r4 | KDE 3.5.0