You are not logged in.

#1 2013-02-16 14:40:55

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

[XFCE4] Starting applications in workspace 2 with Xfwm

I'd like to have any instance of urxvt start in workspace 2 on my system without using a third party app like devils pie 2 or wmctrl.  I have searched extensively but haven't found a working solution.  Advice is appreciated.

Related threads with solutions:
Reported to work with openbox.

Last edited by graysky (2013-02-16 14:44:15)

Offline

#2 2013-02-16 14:58:01

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: [XFCE4] Starting applications in workspace 2 with Xfwm

The ability to start an application on a specific desktop is dependent on your wm. If xfce provides no native functionality, you have no choice but to use a third party program.

Offline

#3 2013-02-16 17:20:32

Isildur
Member
Registered: 2009-05-26
Posts: 100

Re: [XFCE4] Starting applications in workspace 2 with Xfwm

Is there any reason why such a sophisticated, old WM/DE doesn't have such a basic feature?

Offline

#4 2013-02-16 18:19:42

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: [XFCE4] Starting applications in workspace 2 with Xfwm

Isildur wrote:

Is there any reason why such a sophisticated, old WM/DE doesn't have such a basic feature?

https://bugzilla.xfce.org/show_bug.cgi?id=9860

Offline

#5 2013-02-18 17:40:39

Isildur
Member
Registered: 2009-05-26
Posts: 100

Re: [XFCE4] Starting applications in workspace 2 with Xfwm

graysky wrote:
Isildur wrote:

Is there any reason why such a sophisticated, old WM/DE doesn't have such a basic feature?

https://bugzilla.xfce.org/show_bug.cgi?id=9860

Cool, let's hope they implement it soon. Really sucks not having this feature.

Offline

#6 2013-02-18 18:39:24

coproduct
Member
Registered: 2011-09-30
Posts: 22

Re: [XFCE4] Starting applications in workspace 2 with Xfwm

I doubt they're ever going to add that functionality.
According to the xfce faqs:

How do I programmatically switch workspaces, move windows, etc?

wmctrl is a commandline tool that can switch workspaces, move windows between workspaces, move window positions, maximize windows, etc.

libwnck is a library that does similar things.

But here's a snippet for opening mc in an xfce-terminal on a particular workspace using wmctrl (found on the web):

#!/bin/sh
window="mc"
xfce4-terminal --title "$window" -x mc
wmctrl -r "$window" -t 2
wmctrl -r "$window" -b toggle,fullscreen

Last edited by coproduct (2013-02-18 19:26:24)

Offline

Board footer

Powered by FluxBB