howto control windows position and size?
Hi people, I have a midi controller and I get the events from the controller easily, using for example, puredata on linux box. What I want is to be able to open windows of applications with a concrete size and in a concrete place on the desktop. For some time I'm looking for graphic environments to do that, but I'm not so lucky. Any one know or have an idea about how can I do that? (is it clear what I ask for?) thanks jaume
Hi, On Fri, Jan 11, 2008 at 11:48:47PM +0100, jaume wrote:
I have a midi controller and I get the events from the controller easily, using for example, puredata on linux box.
What I want is to be able to open windows of applications with a concrete size and in a concrete place on the desktop.
i don't really get what this has to do with midi, but most x-applications do provide a -geometry command line options for specifying window positions and size.. kde applications can be remote controlled using dcop (there is a command line tool 'dcop' to just send commands and a gui tool 'kdcop' which is pretty handy for playing around with the features). This includes moving and resizing windows. technically it should also be possible to move and resize any x11 window by interacting with the window manager - however, i don't know the apis to do this with any of the window managers i know..
(is it clear what I ask for?)
not sure. I hope my answer helps in any way.. yours, - clifford -- For extra security, this message has been encrypted with double-ROT13.
On Sat, Jan 12, 2008 at 12:10:59AM +0100, Clifford Wolf wrote:
technically it should also be possible to move and resize any x11 window by interacting with the window manager - however, i don't know the apis to do this with any of the window managers i know..
There ist the wnck lib, which also has python bindings with this you can do: #!/usr/bin/python import wnck scr = wnck.screen_get_default () scr.force_update () scr.get_windows ()[4].get_name () scr.get_windows ()[4].minimize () There are some methods that take a timestamp which only work if the timestamp is "correct". I've not yet found out (and the docs aren't clear on this) what constitutes a valid timestamp. I've not managed to un-minimize a window (without resorting to brute-force testing of possible timestamps). The code above is tested for the metacity window manager. Ralf -- Ralf Schlatterbeck email: ralf@zoo.priv.at FAX: +43/2243/26465/23
the metalab list is maybe not the best place to ask this question, because midi, pd, linux is not the main purpose of this list. since the creation and placement of app windows is related to the window manager that you are using, you should check out some linux list. which application are you talking about anyway? or are you talking about graphics? please be more elaborative... marius. jaume wrote:
Hi people, I have a midi controller and I get the events from the controller easily, using for example, puredata on linux box.
What I want is to be able to open windows of applications with a concrete size and in a concrete place on the desktop. For some time I'm looking for graphic environments to do that, but I'm not so lucky. Any one know or have an idea about how can I do that?
(is it clear what I ask for?)
thanks
jaume _______________________________________________ Metalab mailing list Metalab@lists.metalab.at http://lists.metalab.at/mailman/listinfo/metalab
Teilnehmer (4)
-
Clifford Wolf -
jaume -
marius schebella -
ralf@zoo.priv.at