View previous topic :: View next topic |
Author |
Message |
1clue Advocate
Joined: 05 Feb 2006 Posts: 2569
|
Posted: Mon Mar 03, 2014 5:18 pm Post subject: Custom window placement utility? |
|
|
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 |
|
|
dlaor n00b
Joined: 27 Jan 2008 Posts: 55
|
|
Back to top |
|
|
1clue Advocate
Joined: 05 Feb 2006 Posts: 2569
|
Posted: Tue Mar 04, 2014 4:21 am Post subject: |
|
|
Showing promise. I'm looking at v2 right now.
Thanks. This is at least the right track. |
|
Back to top |
|
|
chithanh Developer
Joined: 05 Aug 2006 Posts: 2158 Location: Berlin, Germany
|
Posted: Tue Mar 04, 2014 3:11 pm Post subject: |
|
|
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 |
|
|
1clue Advocate
Joined: 05 Feb 2006 Posts: 2569
|
Posted: Wed Mar 05, 2014 12:47 am Post subject: |
|
|
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 |
|
|
|