On Fri, 5 Dec 2008, Perry Hutchison wrote:
Where in .xinitrc should I put "xset r on"? With my .xinitrc
like this...
#===========
exec /usr/bin/fvwm
xset r on
#===========
...the "xset r on" doesn't seem to have an effect.
Nor does it work if I reverse the order of those two lines.
It certainly won't do anything *after* the exec, because the exec
says "replace the running shell with /usr/bin/fvwm" (so the rest
of the script does not get executed at all).
If it doesn't work when run in .xinitrc ahead of fvwm, I suppose
you could try putting it in an InitFunction (or SessionInitFunction
-- see the fvwm manpage for the difference) in your .fvwm2rc.
Thanks; I didn't know "exec" in the shell is like the exec in unistd.h.
OK, "xset r on" doesn't work before "exec /usr/bin/fvwm" either. Nor
does it work if I put in in InitFunction *or* SessionInitFunction, e.g.
AddToFunc InitFunction
+ I xset r on
+ I exec xsetroot -mod 1 2 -fg cornflowerblue -bg sienna
or
AddToFunc SessionInitFunction
+ I Nop
+ I xset r on