Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Custom window placement utility?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
1clue
Veteran
Veteran


Joined: 05 Feb 2006
Posts: 1417

PostPosted: Mon Mar 03, 2014 5:18 pm    Post subject: Custom window placement utility? Reply with quote

Hi,

Can't think what else to call it.

I'm looking for a way to choose what window shows up where on the screen, and what desktop or monitor.

I know about -geometry, but what I'm after is more sophisticated than that.

Let's say you have an app. The app opens windows of its own.

One possible example is firefox, and you hit some sort of business website where you do your work. The website opens a few different windows based on where you are in the app. Each window has a title which is unique, but the examples I'm thinking of the app does not remember where you put that specific window last time.

What I want to do would be to have the third-party window placement utility recognize that I'm in this app, and that last time the window with "customers" as the title was open I had it at such and such position and sized to whatever it was. Then once the app opens the window, it resizes and repositions it accordingly.

Another thing that would be neat is if it remembered which monitor it was on, and which desktop. The desktop thing I can see as being a potential problem, so I think the best approach would be to have a setting, either the visible desktop or an alternate fixed desktop.

I can see this as being at least technically possible, in the sense that you know the app name from the process list, and if it's a browser you might be able to get the URL. And then the window has a title on it, and that should be enough I think.

Does somebody know of a project like that, that actually works?

Thanks.
Back to top
View user's profile Send private message
dlaor
n00b
n00b


Joined: 27 Jan 2008
Posts: 46

PostPosted: Tue Mar 04, 2014 12:14 am    Post subject: Reply with quote

Devilspie, or its fork devilspie2, might be what you're looking for, see http://www.burtonini.com/blog/computers/devilspie and http://www.gusnan.se/devilspie2/.

Both are in portage.
Back to top
View user's profile Send private message
1clue
Veteran
Veteran


Joined: 05 Feb 2006
Posts: 1417

PostPosted: Tue Mar 04, 2014 4:21 am    Post subject: Reply with quote

Showing promise. I'm looking at v2 right now.

Thanks. This is at least the right track.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1691
Location: Berlin, Germany

PostPosted: Tue Mar 04, 2014 3:11 pm    Post subject: Reply with quote

KDE's kwin has such a function already integrated.

Another solution would be to use xwininfo to recognize the window, and wmctrl to set size/position.
Back to top
View user's profile Send private message
1clue
Veteran
Veteran


Joined: 05 Feb 2006
Posts: 1417

PostPosted: Wed Mar 05, 2014 12:47 am    Post subject: Reply with quote

OK thanks for that, the second part might be interesting but I'm not going anywhere near KDE or Gnome. More aimed at something like fvwm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum