On Mon, Dec 03, 2001 at 12:01:29AM -0800, Mr O wrote:
> 
> >>    I dont know about a utility to switch x configs, but you can copy your 
> XF86Config file to XF86Config.tube, then make another one for the LCD, and 
> copy it as XF86Config.lcd, then copy the apropriate one as XF86Config as 
> needed.
> 
> Jamie
> 
> That's the only way I know how as well. Was hoping there was a way just to 
> throw a switch to do it instead of copying the appropiate file as the config 
> each time. Thanks anyway.

This *might* work:


#!/bin/sh

case $1 in
        tube)
                startx -- -xf86config /etc/X11/XF86Config.tube
        ;;
        lcd)
                startx -- -xf86config /etc/X11/XF86Config.lcd
        ;;
        *)
                echo "You must specify your display"
        ;;
esac


Save it as something like my_X, make it executable and put it in your
$PATH.  I like to put my scripts in ~/bin, and make that the first
path in $PATH.  Then call it like:

$ my_X tube
or
$ my_X lcd

Choosing an X config file for xdm at system startup is a bit trickier.

Note, the XFree86 manpage says this about the -xf86config option:
 "This option will work for any file when the server is run as
  root (i.e, with real-uid 0), or for files relative to a directory
  in the config search path for all other users."

-- 
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>

Reply via email to