[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to set Xserver resolution



	Subject: Re: How to set Xserver resolution
	Date: Sun, Oct 01, 2000 at 09:00:07PM +0200

In reply to:Philipp Lehman

Quoting Philipp Lehman(lehman@gmx.net):
> On Sun, 1 Oct 2000, William Jensen <jensenb@bodach.com> wrote:
> >On Sun, Oct 01, 2000 at 01:38:36PM -0400, Wayne Topa wrote:
> >> 
> >> startx  -bpp 16 -dpi 120
> >> 
> >> Would be one way.
> 
> Is there a way to make that permanent as well? Something in
> XF86Config?

I used to have this as an alias  in my .bashrc
alias x16='startx -- -bpp 16 -dpi 120 &'

Some kind Guru once posted a script that I tried and after finding it
sooo useful I added that to my .bashrc and replaced the above alias.

x() {
      D=x
      for i in `seq 0 4`;do if [ ! -f /tmp/.X${i}-lock ]; then D=$i; break; fi; done
      if [ "${D}" = "x" ]; then
        echo "No free virtual terminal"
      else
        if [ $# -lt 1 ];
          then startx -- :${D} -bpp 16 -dpi 120 2> ~/.X.err > ~/.X.out  &
          else startx -- :${D} -bpp $1 2> ~/.X.err > ~/.X.out  &
        fi;
      fi
}


Hope This Helps

-- 
Windows: the ultimate triumph of marketing over technology.
_______________________________________________________



Reply to: