From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <36a1d00ea12f162fcd7c7c09d8097289@comcast.net> From: Gregory Pavelcak Date: Fri, 4 Jul 2008 09:00:40 -0400 To: 9fans@9fans.net MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] Rio windows size and location Topicbox-Message-UUID: dae08862-ead3-11e9-9d60-3106f5b1d025 Here's the summary for the window command in the man page. window [ -m ] [ -r minx miny maxx maxy ] [ -dx n ] [ -dy n ] [ -minx n ] [ -miny n ] [ -maxx n ] [ -maxy n ] [ -cd dir ] [ -hide ] [ -scroll ] [ -noscroll ] [ cmd arg ... ] If I do window -r 200 200 1000 900, I get the same result as window -minx 200 -miny 200 -maxx 1000 -maxy 900, which, frankly, believe it or not, was not what I expected. Given that -r allows one to specify the exact corners of the window, the result I expected, and would like, from the second form is just to create a rectangle on the screen, smaller than the screen size, to which the new window that opens is confined. So, my thought was every time I execute the first form, I get a new window of that exact size and location right on top of its predecessor, while repeated executions of the second form give me new windows of the default (600x400?) size but contained within the bounding box defined by me. The reason this came up is that I have a wide monitor, and I find myself moving windows to the center (as if it's a chore to look to one side or the other!?), so I decided to open clock, winwatch, stats along the right side of my screen (about 1520,0,1680,1000) and open new windows with the restriction -maxx 1520. For example, "window -dx 800 -dy 800 -maxx 1520" means give me a window that size anywhere you want as long as it doesn't go farther right than 1520. But, as I've already suggested, that command doesn't have the expected effect. Actually, just clicking on the window command I wrote resulted in this window (from wloc): "window -r 112 112 912 512". Anyway, the point is I started looking at wctl.c to see if I could get the behavior I want. I just thought I would ask if this is a stupid idea; or if it has already been done, and there's a way to get the effect I want that I'm missing. Thanks. Greg