Hi all, quick question:
How do I set the display manager geometry? Is there some parameter I set in the .tcltkgrass file?
I am using osx 10.3, and 5.7.
Thanks,
Ian
Hi all, quick question:
How do I set the display manager geometry? Is there some parameter I set in the .tcltkgrass file?
I am using osx 10.3, and 5.7.
Thanks,
Ian
How do I set the display manager geometry? Is there some parameter I
set in the .tcltkgrass file?
I am using osx 10.3, and 5.7.
d.info (or xwininfo) tells you the current settings.
set with GRASS_WIDTH and GRASS_HEIGHT environmental variables in the
shell (affects all new monitors).
resize existing monitors with d.resize.
see:
http://grass.ibiblio.org/grass60/manuals/html60_user/variables.html
http://grass.ibiblio.org/grass60/manuals/html60_user/d.info.html
http://grass.ibiblio.org/grass60/manuals/html60_user/d.resize.html
Hamish
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, 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.
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.
GRASS 6.0.0beta1:~ > d.info -d
dimensions: 640 480
GRASS 6.0.0beta1:~ > eval g.gisenv
GISDBASE=/Users/ianmacmillan/grass
LOCATION_NAME=utm11
MAPSET=ianmacmillan
GRASS_WIDTH=90
GRASS_HEIGHT=90
GRASS_GUI=tcltk
MONITOR=x0
I guess I don't get it. Any ideas?
Thanks,
Ian
On Jan 31, 2005, at 4:13 PM, Hamish wrote:
How do I set the display manager geometry? Is there some parameter I
set in the .tcltkgrass file?
I am using osx 10.3, and 5.7.d.info (or xwininfo) tells you the current settings.
set with GRASS_WIDTH and GRASS_HEIGHT environmental variables in the
shell (affects all new monitors).resize existing monitors with d.resize.
see:
http://grass.ibiblio.org/grass60/manuals/html60_user/variables.html
http://grass.ibiblio.org/grass60/manuals/html60_user/d.info.html
http://grass.ibiblio.org/grass60/manuals/html60_user/d.resize.htmlHamish
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
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 x4you can put those settings into ~/.grass.bashrc (or ~/.grass.cshrc)
study:
http://grass.ibiblio.org/grass60/manuals/html60_user/variables.htmlHamish
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
No.
.grassrc6 holds the last visited mapset etc (for when you restart)
.grass.bashrc contains custom start up commands
(when using a Bash/Bourne shell)
again,
> study:
> http://grass.ibiblio.org/grass60/manuals/html60_user/variables.html
[we are nearing tweaking-for-power-users territory....]
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=480Still no change in the monitor geometry. I don't get it.
almost there. For the shell variables to escape their script (here
.grass.bashrc) and be passed on you need to use "export".
make the file look like this:
export GRASS_WIDTH=480
export GRASS_HEIGHT=480
then restart GRASS.
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?
on the Mac, X11 opens up a xterm every time you start it. (try starting
X11 not by starting GRASS to see) there'll be a /etc/X11/xinitrc or
somewhere to comment it out. (let me know if you find it, always bugs me)
??
otherwise no idea.
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.
I'm all for getting rid of little anoyances.
Hamish