Xfce Forum

Sub domains
 

You are not logged in.

#1 2016-06-28 14:20:49

yochaigal
Member
Registered: 2011-10-14
Posts: 24

[SOLVED] devilspie and google hangouts

Hello. I like having Google Hangouts in my second monitor, regardless of what workspace I'm in.
To this end, I've configured devilspie to run on startup; it sticks/pins the Google Hangouts window (via the GH extension) to the appropriate monitor.

However, it only works if I run devilspie AFTER Hangouts loads; while the actual GH window/app is launching it seems to ignore it completely. Every other application (Slack for Linux, Firefox) does what devilspie is configuring them to do - correctly, when I launch them.
So what I've resorted to doing is launching Hangouts; waiting for it to open; then killing/restarting devilspie.
Anyone understand what's going on here? Thanks!
My devilspie config:

( if
( begin
( is ( window_name ) "Google Hangouts" )
)
( begin
( pin )
( stick )
( geometry "812x1000+0+416" )
( println "match" )
)
)

Last edited by yochaigal (2016-06-28 17:36:28)

Offline

#2 2016-06-28 17:11:25

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: [SOLVED] devilspie and google hangouts

Perhaps the window name is changing during the startup and after devilspie has processed it. Try running devilspie in debug mode:

devilspie -d

...and see what it is recognizing when you start the extension.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2016-06-28 17:36:04

yochaigal
Member
Registered: 2011-10-14
Posts: 24

Re: [SOLVED] devilspie and google hangouts

Ah ha - this solved it for me. The window calls itself "Google Hangouts" at first, then after everything loads, changes its name. So I just set the application name to "google hangouts" and everything works!
So:

( if
( begin
( is ( application_name ) "Google Hangouts" )
)
( begin
( pin )
( stick )
( geometry "812x1000+0+416" )
( println "match" )
)
)


Thanks!

Last edited by yochaigal (2016-06-28 17:37:14)

Offline

Board footer

Powered by FluxBB