You are not logged in.
Pages: 1
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
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
Pages: 1