You are not logged in.

#1 2015-10-04 14:50:01

kentkentkent
Member
Registered: 2015-09-22
Posts: 12

devilspie configuration not working.

Hello Arch Forums!

I'm trying so get a few programs running on my second display using devilspie.

I have the configuration file "test.ds" under ~/.devilspie, and it looks like this:

( if
( begin
(contains (application_name) "nautilus" )
)
( begin
( set_viewport 2 )
( println "match" )
)
)

This config only works with "nautilus", "gnome-terminal" and "gedit". Why is that? I've tried other programs like "emulatonstation", "chromium", "google-chrome", "firefox", and "kodi", but they only open on my first monitor.

Any help on how to get these opening in the right monitor?

Last edited by kentkentkent (2015-10-04 15:09:57)

Offline

#2 2015-10-04 18:15:30

toz
Member
Registered: 2011-10-28
Posts: 513

Re: devilspie configuration not working.

Use "xprop" to see what WM strings each application returns and which is the appropriate one to use. For example, firefox returns:

WM_CLASS(STRING) = "Navigator", "Firefox"
WM_ICON_NAME(STRING) = "devilspie configuration not working. / Newbie Corner / Arch Linux Forums - Mozilla Firefox"
_NET_WM_ICON_NAME(UTF8_STRING) = "devilspie configuration not working. / Newbie Corner / Arch Linux Forums - Mozilla Firefox"
WM_NAME(STRING) = "devilspie configuration not working. / Newbie Corner / Arch Linux Forums - Mozilla Firefox"
_NET_WM_NAME(UTF8_STRING) = "devilspie configuration not working. / Newbie Corner / Arch Linux Forums - Mozilla Firefox"

...so the more appropriate config to use would be "window_class" since it returns "Firefox". Notice that the WM_NAME string doesn't match what you're looking for. Therefore:

( if
( begin
(contains (window_class) "Firefox" )
)
( begin
( set_viewport 2 )
( println "match" )
)
)

...should work.

Offline

Board footer

Powered by FluxBB