Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I would like to add a command at the rc.d system by which, when ubuntu starts it will run different program at different workspaces.I.e:workspace 1: chrome,workspace 2:thunderbird.How could this be achieved?Is there any tool?

share|improve this question

1 Answer 1

even though you could actually write some script to auto-start any application you want in different X sessions, you may want to have a look at the confgiuration files of your wm (which is?).

to do exactly what you asked, eg, with xmonad (my wm) you simply have to write a few lines, like

className =? "Icedove"             --> doShift "3:mail"

if you use compiz, i think there's a plugin to put an application in a specific workspace. so all you have to do is simply to auto-start them.

so please specify your wm :)

share|improve this answer
    
home@home-Aspire-1810TZ:/etc/init.d$ wmctrl -m Name: Compiz Class: N/A PID: N/A –  curious Jun 25 '11 at 8:40
    
i've found that devilspie is the tool that i am searching for.I'll let you know.I also found compizconfig-settings-manager but i prefer sth from command line –  curious Jun 25 '11 at 9:03
    
It seems that under Compiz wm, devilspie commands are not working.I create a simple user.ds file under ~user/.devilspies (if (is (application_name) "google-chrome") (set_workspace 2) ) but it seems that it doesn't follow the rule. –  curious Jun 25 '11 at 13:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.