Thomas Adam <thomas_adam16_at_yahoo.com> writes:
> --- Dan Espen <dane_at_mk.telcordia.com> wrote: > Thomas Adam
> <thomas_adam16_at_yahoo.com> writes:
> > > --- Dan Espen <dane_at_mk.telcordia.com> wrote: > Christian Aistleitner
> > > <tmgisi_at_gmx.at> writes:
> > > > > Hello,
> > > > >
> > > > > So what I was looking for was something like:
> > > > >
> > > > > Style XTerm StartMaximized
> > > >
> > > > Xterm understands X resources.
> > > >
> > > > I use rxvt instead of xterm, but a similar approach would work
> > > > for xterm.
> > > > Here is what I use to force rxvt to almost full screen height
> > > > (font matters too):
> > > >
> > > > #if ( HEIGHT == 900 )
> > > > Rxvt.geometry: 80x55
> > > > #elif ( HEIGHT == 1024 )
> > > > Rxvt.geometry: 80x65
> > > > #elif ( HEIGHT == 768 )
> > > > Rxvt.geometry: 80x47
> > > > #else /* I have no idea... */
> > > > Rxvt.geometry: 80x40
> > > > #endif
> > > >
> > > > "HEIGHT" is defined by xrdb which loads the xresources.
> > >
> > > I'd be more inclined to add it in "~/.Xresources" (often symlinked to
> > > ~/.Xdefaults).
> >
> > When you put things in ~/.Xdefaults doesn't xrdb still do the loading?
> >
> >
> > I used to use .Xdefaults, but I found that it got out of control
> > because it was too big.
> >
> > Now I have this in my .xinitrc:
> >
> > cat $HOME/xdef/*.ad | xrdb -load
> >
> > And I have a bunch of X.ad files in ~/xdef.
>
> Yeah, i mean there's nothing wrong with you doing that, although I
> question your command above. "cat" will display the contents, surely
> something like:
>
> ``
> for i in $(ls -1 $HOME/xdef/*.ad); do xrdb -merge $i; done
> ''
>
> would be better? Or am I missing something?
"ls" isn't necessary.
for i in $HOME/xdef/*.ad; do xrdb -merge $i; done
would eliminate the multiple invocations of ls.
But that leaves the multiple invocations of xrdb.
There's no need to do the files one at a time
cat'ing them all together and putting them on xrdb's stdin
seems better to me.
--
Dan Espen E-mail: dane_at_mk.telcordia.com
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Thu Sep 18 2003 - 07:25:24 BST