7

Is it possible to set start-up applications to initialize in certain workspaces? I'd like to not have to manually distribute my start-up applications across my numerous workspaces every time I boot up my machine. I'm running Ubuntu 12.04 .

Any Help ?

nux
  • 38,017
  • 35
  • 118
  • 131
Dodgie
  • 261

3 Answers3

5

Yes , thats possible using gdevilspie ( GUI of devilspie) :

Open Terminal and type the following coommand :

sudo apt-get install gdevilspie

Now open gdevilspie with (Alt + F2, gdevilspie, Enter).

Click start daemon and automatically on login .

Example here is Skype ( you should set it to run on startup ) :

enter image description here

devilspie Here

enter image description here

enter image description here

Now restart daemon and try .

nux
  • 38,017
  • 35
  • 118
  • 131
1

Additionally, this can also be done with CompizConfig (and in fact, if your workspaces are generated by CompizConfig, then the devilspie solution doesn't seem to work):

CompizConfig > Window Management > Place Windows > Fixed Window Placement > Windows with Fixed Viewport

Make sure that "Place Windows" is enabled (CompizConfig > Window Management).

Dodgie
  • 261
0

Install wmctrl

sudo apt install wmctrl

And create a script (in this example thunderbird on the second workspace (-t 1)):

#!/bin/sh
(thunderbird &)  & sleep 5 && 
sh -c "wmctrl -i -r `wmctrl -l | grep Thunderbird` -t 1"

To know your application name on wmctrl you can view it by taping on your terminal :

wmctrl -l

And replace it with the correct name in the script.

Be carrefull with the capital letter ("Thunderbird" not "thunderbird") !!

Other example with firefox on the 3d workspace (-t 2):

#!/bin/sh
#!/bin/sh
(firefox &)  & sleep 5 && 
sh -c "wmctrl -i -r `wmctrl -l | grep Firefox` -t 2"

Work on Debain 10 with Cinnamon. But should work for all

pzim
  • 41