I have tried the wmctrl tool and found that the easiest solution that worked for me is to move window eith the following command:

wmctrl -r <WindowName> -t <WorkspaceNumber>

Note that the workspace numbers starts from 0. Last you can move to your preffered workspace with the command:

wmctrl -s <WorkspaceNumber>
ubuntu 13.04:ssä työtilat ovat oletuksena pois päältä. Ne saa paalle: järjestelmäasetukset-appearance-toiminta-ruksi ruutuun: enale woerkspaces

Toimii:
sudo apt-get install devilspie gdevilspie
anna käskyt:
mkdir ~/.devilspie
gedit firefox.ds

ja liimaa sinne:
; generated_rule firefox
(if 
 (is ( application_name ) "Firefox" )
 ( set_workspace 2 )
)


****?
# application1 on first workspace 
desktop 0
application1 &

# application2 on second workspace
desktop 1
application2 &
