Xfce Forum

Sub domains
 

You are not logged in.

#1 2007-02-05 21:03:15

justakiwi
Member
Registered: 2007-02-03
Posts: 49

Auto starting applications into specific workspaces

I have a couple of applications set to start at start-up. Is it possible to make them start into their own specific workspace every time?  e.g. Firefox starts in Workspace 2,  Sunbird in Workspace 3?  I had this working when I was using Fluxbox, but Fluxbox had a right click in the title bar option to "remember workspace". I don't see that option in xfce.

Is it possible to do this?

Offline

#2 2007-02-05 21:14:32

Nick
Dev
From: ~
Registered: 2005-02-17
Posts: 1,143
Website

Re: Auto starting applications into specific workspaces

Not a real option in Xfce, but search the forum and you'll find your answer (hint: Devils Pie).

Offline

#3 2007-02-05 21:55:16

justakiwi
Member
Registered: 2007-02-03
Posts: 49

Re: Auto starting applications into specific workspaces

Nick wrote:

Not a real option in Xfce, but search the forum and you'll find your answer (hint: Devils Pie).

Can I buy another hint please?  I did a member search for Devils Pie but he doesn't exist and so far whatever wording I've used to search the forums for similar posts hasn't shown up anything.

Offline

#4 2007-02-06 05:32:35

fatcat
Member
From: FI
Registered: 2004-05-11
Posts: 32

Re: Auto starting applications into specific workspaces

devilspie
wmctrl

Offline

#5 2007-02-06 07:55:39

justakiwi
Member
Registered: 2007-02-03
Posts: 49

Re: Auto starting applications into specific workspaces

fatcat wrote:

devilspie
wmctrl

Well, if they are still members here, your "search for members" function must be broken because it doesn't find either of them.

Offline

#6 2007-02-06 10:52:41

ozroc
Member
Registered: 2007-02-03
Posts: 13

Re: Auto starting applications into specific workspaces

wmctrl (http://www.sweb.cz/tripie/utils/wmctrl/) is a program for controling via scripts the Window Manager.
It will cover your needs, but you have to read and write a bit.
DevilsPie (http://www.burtonini.com/blog/computers/devilspie) is a daemon that opens windows in choosen Desktops. It's less powerfull than wmctrl and I foud it a bit buggy in other WM's than Metacity (gnome).
Ozganizator is an easy way for doing some things with wmctrl that can be easily used for this...
Something like this in Autostart should do the work:

#! /bin/bash
firefox &
wait
sunbird &
wait
sh ~/.ozganizator/ozganizator &

Or just the proper wmctrl command instead of using ozganizator:

#! /bin/bash
firefox &
wait
sunbird &
wait
wmctrl -i -r firefox -t 2
wmctrl -i -r sunbird -t 3 

If you want more help, tell me here (http://forum.xfce.org/index.php?topic=3124.0).

Offline

#7 2007-02-06 18:34:19

justakiwi
Member
Registered: 2007-02-03
Posts: 49

Re: Auto starting applications into specific workspaces

ozroc wrote:

wmctrl (http://www.sweb.cz/tripie/utils/wmctrl/) is a program for controling via scripts the Window Manager.
It will cover your needs, but you have to read and write a bit.
DevilsPie (http://www.burtonini.com/blog/computers/devilspie) is a daemon that opens windows in choosen Desktops. It's less powerfull than wmctrl and I foud it a bit buggy in other WM's than Metacity (gnome).
Ozganizator is an easy way for doing some things with wmctrl that can be easily used for this...

Many thanks! And thanks for speaking plain english instead of expecting me to work on cryptic clues.

I'll check your suggestions out - thanks again smile

Offline

#8 2007-02-06 18:46:34

Nick
Dev
From: ~
Registered: 2005-02-17
Posts: 1,143
Website

Re: Auto starting applications into specific workspaces

You can learn from clues cool.

Offline

#9 2007-02-07 20:29:17

MagnusBerg
Member
Registered: 2004-12-17
Posts: 45

Re: Auto starting applications into specific workspaces

If I had understand the difference between Wmctrl and Devilspie correct you need to start up applications with a Wmctrl script or commando each time while Devilspie runs in the background (deamon) and controls windows without need for specific commands, the usual built in meny command is good enough.
I have now installed Devilpie and I like it. I found a real good manual at http://wiki.foosel.net/linux/devilspie with lots of good examples.

Offline

#10 2007-02-07 23:12:43

justakiwi
Member
Registered: 2007-02-03
Posts: 49

Re: Auto starting applications into specific workspaces

MagnusBerg wrote:

If I had understand the difference between Wmctrl and Devilspie correct you need to start up applications with a Wmctrl script or commando each time while Devilspie runs in the background (deamon) and controls windows without need for specific commands, the usual built in meny command is good enough.
I have now installed Devilpie and I like it. I found a real good manual at http://wiki.foosel.net/linux/devilspie with lots of good examples.

How the heck do you start the daemon? I've installed it but I can't seem to start it.

Offline

#11 2007-02-07 23:27:37

justakiwi
Member
Registered: 2007-02-03
Posts: 49

Re: Auto starting applications into specific workspaces

Never mind. It seems to be working now. This is exactly what I needed smile

Offline

#12 2007-02-08 15:01:53

MagnusBerg
Member
Registered: 2004-12-17
Posts: 45

Re: Auto starting applications into specific workspaces

I have already been a little disapointed since my Devilspie start yesterday. ;-) The first problem is that you need to take care about dialog window two. Or else they will be as large as the application. There will be a lots of rules to wrigth. But I will see if I can stand it.
Another drawback is that Devilpie slow down window openings in our great and outstanding fast windowmanager.
Here is my two (so far) Devilspie rules for Firefox.

(if
    (is (application_name) "Firefox")
    (begin
        (set_workspace 1)
        (geometry "1200x1120+396+0")
    )
)
(if
    (and 
        (is (application_name) "Firefox")
    (is (window_name) "Open file")
    )
   (begin
        (wintype "dialog")
        (geometry "800x800")
    )
)

Offline

Board footer

Powered by FluxBB