[GRASSLIST:5577] Re: display monitor geometry
Ian MacMillan
ian_macmillan at umail.ucsb.edu
Tue Feb 1 01:06:15 EST 2005
Hi again, thanks for the reply, I think I understand things a little
better now after some reading, but I still have two problems. First,
my .grassrc6 (I think OSX uses this instead of .grass.bashrc) file
reads:
GISDBASE: /Users/ianmacmillan/grass
LOCATION_NAME: utm11
MAPSET: ianmacmillan
GRASS_WIDTH: 480
GRASS_HEIGHT: 480
MONITOR: x0
GRASS_GUI: tcltk
However whenever I open a raster I get a 640x480 monitor. Just for
sh-- and giggles I made a .grass.bashrc file as well that solely has
GRASS_WIDTH=480
GRASS_HEIGHT=480
Still no change in the monitor geometry. I don't get it.
Problem 2:
Another window geometry problem I am unsure about involves my xterm
window. I am getting weird behavior between GRASS and X11. My xterm
normally opens with a 110x25+600+65 geometry when I open X11 for the
first time, or a new xterm once X11 is already open. This is the
geometry I have specified in two files ~/.Xdefaults and ~/.Xresources.
When I open grass6 using the icon, my xterm opens with a scrollbar and
scroll length of 2000 (as also specified in these files), but the
geometry is 80x25+600+65. If I exit grass, then restart without
restarting X11, the xterm opens with 80x25+0+20. I don't understand
this behavior. It seems like there is an .xinitrc file or something
else that grass reads, but I don't know where it is. Any ideas?
I know this all seems trivial, but I would just like a slicker
application look. Why should I have to resize 3 windows every time I
restart GRASS? Overall I am thrilled with GRASS, and the work the
developers put in, but little things like this go a long way to making
it a friendlier application to us non programmer types.
Thanks a bunch,
Ian
On Jan 31, 2005, at 7:43 PM, Hamish wrote:
>> Hamish, thanks a lot for the reply, but I don't think this works for
>> what I want. I think that is the way to resize the monitor,
>
> yes.
>
>> but not
>> the display manager (d.m). I would like the original display manager
>> to come up in the lower left corner of my screen instead of the middle
>> by default, since the geometry (xy position) of the xdriver can not be
>> set (from what I have been told). Everytime I open grass, I need to
>> resize and move the display manager before I do anything. Also, my
>> .Xdefaults isn't completely read anymore when I start up grass, so my
>> xterm geometry is also not read. Basically I would like a nice
>> geometry upon startup of grass, without always needing to resize and
>> move all the windows.
>
> maybe your window manager lets you save settings? Alt-middle click?
> maybe you need to edit the tcl window code..?
> (If you figure this out, it would be nice to tell the NVIZ control
> window to stay at the top right corner of the screen too, instead of
> jumping all over the place whenever you pick a new panel item....)
>
> as for xterm, maybe:
> ln -s ~/.Xdefaults ~/.Xresources
> ?
>
>
>> As for what you wrote, I don't think I understand everything exactly
>> (still a UNIX dunce),
>> I set my GRASS_HEIGHT and GRASS_WIDTH to 90 as a test with
>> g.gisenv set=GRASS_HEIGHT=90
>> however my monitors still pop up as a 640x480 screen.
>
> no, these are unix shell variables not GRASS variables.
>
> export GRASS_HEIGHT=90
> export GRASS_WIDTH=90
> d.mon x4
>
> you can put those settings into ~/.grass.bashrc (or ~/.grass.cshrc)
>
> study:
> http://grass.ibiblio.org/grass60/manuals/html60_user/variables.html
>
>
>
> Hamish
More information about the grass-user
mailing list