Topic: Start an app on specific workspace?

I'm looking for a way to put an app in autostart.sh and make it load up (ideally fullscreen, though i can always press F11 myself) on workspace 2, but not have that workspace take focus, as I want the other thing in autostart.sh to load on workspace 1

Ex-KDE user.
Collects old PC's (Coz he can't afford new ones =P)
Crunchbang @ Distrowatch
My Blog (updated infrequently, and on the #! Planet too.)

Re: Start an app on specific workspace?

I did something similar recently.  I wanted autostart.sh to start mocp covering a certain region of my desktop and used the following:

terminator_desktop --command="mocp -T green_theme" -b --geometry=1280x241+0+772 &

I got the window geometry using xwininfo then selecting the window I wanted to use.  I believe, just by looking at it, if you had a 1280x1024 monitor the geometry for full screen would be 1280x1024+0+1280?

Anyways not sure about desktops, I only use 1 myself.

(the "terminator_desktop" is from a post in the tips thread about using multiple terminator configs and setting terminals as desktop apps, you may not need that if you are just using an app at full screen)

Last edited by kBang (2009-04-05 01:12:16)

I view KDE like I view snow. It looks fun and marvelous, it's fun to play in, but after a while I just want someone to take it all away.

Re: Start an app on specific workspace?

I've put something in, I'll try it shortly

And you're a genius, it was a terminal app I was wanting to start too wink

EDIT:

Almost got it. it's not starting fullscreen, nor on the right desktop. (I DO have it maximised though wink

Last edited by Mehall (2009-04-05 01:19:05)

Ex-KDE user.
Collects old PC's (Coz he can't afford new ones =P)
Crunchbang @ Distrowatch
My Blog (updated infrequently, and on the #! Planet too.)

Re: Start an app on specific workspace?

Okay, got it fullscreen (just needed -f in terminator, dunno if geometry is needed there, unless I can use it to set workspace) but it's STILL on workspace 1

Ex-KDE user.
Collects old PC's (Coz he can't afford new ones =P)
Crunchbang @ Distrowatch
My Blog (updated infrequently, and on the #! Planet too.)

Re: Start an app on specific workspace?

For completeness I recently began using urxvt since I went to using Compiz-Fusion as my WM.  To call a terminal app like mocp and set it's location from an executable file I use this command line:

rxvt options -geometry geom -e command parameters

example:

rxvt +sb -geometry 153x27+233+424 -e mocp -T green_theme

+sb removes the scrollbar, -e is the command option, everything after "mocp" is for mocp (command parameters).  If you don't want to use a theme with mocp, obviously you can leave out the -T green_theme. wink

Last edited by kBang (2009-04-06 03:15:32)

I view KDE like I view snow. It looks fun and marvelous, it's fun to play in, but after a while I just want someone to take it all away.