Click to See Complete Forum and Search --> : xinit: starting programs on different desktops??


jme
02-08-2004, 06:45 AM
Hello,

I am wanting to have xinitrc startup several programs for me whenever I start X but I want them to be started on a specified workspace.

For example I am using fluxbox which has four workspaces and I want:
>program1 to be started on workspace2
>program2 to be started on workspace3 etc. etc..

Is this possible, and if it is what arguments do I need to add to the usual additions to the ~/.xinitrc file.

Any advice appreciated.

Jme.

mdwatts
02-08-2004, 04:24 PM
I didn't find anything myself though you could certainly have a look to see if I overlooked anything.

man xinit

jme
03-16-2004, 09:37 AM
Still haven't been able to find any fixes for this over the past few weeks.

Anyone else have any ideas??

Cheers,
Jamie

Hayl
03-16-2004, 09:44 AM
you can use a window matching tool like Devils pie.

http://www.burtonini.com/blog/computers/devilspie

As an exampele of the config... here is my "flurb" for Streamtuner from my ~/.devilspie.xml file. It moves Streamtuner to desktop 3 when it loads.

<!--
Match the streamtuner window and move it to Desktop Three
-->
<flurb name="streamtuer Move">
<matchers>
<matcher name="DevilsPieMatcherWindowName">
<property name="application_name" value="streamtuner"/>
</matcher>
</matchers>
<actions>
<action name="DevilsPieActionSetWorkspace">
<property name="workspace_index" value="3"/>
</action>
</actions>
</flurb>

jme
03-16-2004, 10:46 AM
Thanks Hayl,

That seems to be just what I am looking for.

All the best,
Jamie

Hayl
03-16-2004, 10:53 AM
I just thought of this.

make sure that devilspie loads before the apps you want moved :) or they won't get moved...