XF86Config and commandline

Alexander Gottwald Alexander.Gottwald@s1999.tu-chemnitz.de
Sat May 10 18:45:00 GMT 2003


Hi

I'm working on a full support of the XF86Config file (with the screen 
sections) and want to make all special options from the commandline also 
available from the configfile.

With these changes I also want to simplify the commandline parsing. Most
options which can be specified for each screen will be only available
for all screens.

eg. XWin -screen 0 800x600 -fullscreen -screen 1 800x600
does currently enable fullscreen only for the first screen and not for the
second will then set both screen to fullscreen.

I want to do this to simplify the datastructures where I have to store
the commandline options which will override the settings from the configfile.

Any comments to this?

bye
    ago

BTW: I attached an example, how the configfile could look like. 
    
NP: Terminal Choice - The Saviour
-- 
 Alexander.Gottwald@informatik.tu-chemnitz.de 
 http://www.gotti.org           ICQ: 126018723
-------------- next part --------------
# NOTICE: This file was created as a sample config file for the Cygwin/XFree86 
# XServer for Windows. It will not work for other versions of XFree or with
# other XServers at all.
#
# The following sections are supported:
# 
# Files: 
#   FontPath is correctly set
#   RgbPath is read (setting not tested)
#
# Device - Keyboard:
#   The first keyboard section is used for configuration. You can specify
#   a special name via the -keyboard switch.
#   All XKB settings are supported 
#
# Other sections are not supported
#   For support of a special section, ask the porter on
#   mailto:cygwin-xfree@cygwin.com
#
# you can report errors to <cygwin-xfree@cygwin.com>
#

# **********************************************************************
# Refer to the XF86Config(4/5) man page for details about the format of 
# this file.
# **********************************************************************

# **********************************************************************
# Files section.  This allows default font and rgb paths to be set
# **********************************************************************

Section "Files"

# The location of the RGB database.  Note, this is the name of the
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.

    RgbPath	"/usr/X11R6/lib/X11/rgb"

# Multiple FontPath entries are allowed (which are concatenated together),
# as well as specifying multiple comma-separated entries in one FontPath
# command (or a combination of both methods)
# 
# If you don't have a floating point coprocessor and emacs, Mosaic or other
# programs take long to start up, try moving the Type1 and Speedo directory
# to the end of this list (or comment them out).
# 

    FontPath   "/usr/X11R6/lib/X11/fonts/local/"
    FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
#    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath   "/usr/X11R6/lib/X11/fonts/Speedo/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
#    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"

# Fontserver support

#   FontPath    "tcp/localhost:7100"    
    
# The module search path.  The default path is shown here.

#    ModulePath "/usr/X11R6/lib/modules"

EndSection

# **********************************************************************
# Input devices
# **********************************************************************

# **********************************************************************
# Core keyboard's InputDevice section
# **********************************************************************

Section "InputDevice"

    Identifier	"Keyboard1"
    Driver	"Keyboard"
# For most OSs the protocol can be omitted (it defaults to "Standard").
# When using XQUEUE (only for SVR3 and SVR4, but not Solaris),
# uncomment the following line.

#    Option     "Protocol"      "Xqueue"

    Option "AutoRepeat" "500 30"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
#    Option	"Xleds"      "1 2 3"

#    Option "LeftAlt"     "Meta"
#    Option "RightAlt"    "ModeShift"

# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults).  For example, for a non-U.S.
# keyboard, you will probably want to use:
#    Option "XkbModel"    "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
#    Option "XkbModel"    "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
#    Option "XkbLayout"   "de"
# or:
#    Option "XkbLayout"   "de"
#    Option "XkbVariant"  "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
#    Option "XkbOptions"  "ctrl:swapcaps"

# These are the default XKB settings for XFree86
#    Option "XkbRules"    "xfree86"
#    Option "XkbModel"    "pc101"
#    Option "XkbLayout"   "us"
#    Option "XkbVariant"  ""
#    Option "XkbOptions"  ""

#    Option "XkbDisable"

    Option "XkbRules"	"xfree86"
    Option "XkbModel"	"pc105"
    Option "XkbLayout"	"de"

EndSection

# 
# The following sections are just added to fulfill the requirements of the 
# configfile parser and have no effect on the configuration of the 
# Cygwin/XFree86 XServer.
#

Section "Device"
    Identifier  "dummy"
    Driver      "xwin"
    Option      "Engine"    "shadow, ddraw, dd-nonlock, dd-primary, gdi"
EndSection

Section "Monitor"
    Identifier  "dummy"
EndSection

Section "Screen"
    Identifier  "dummy"
    Device      "dummy"
    Monitor     "dummy"
    Option      "NoMultiwindow"
    Option      "NoRootless"
    Option      "NoFullscreen"
    Option      "Decoration"
    Option      "NoMultiplemonitors"
    Option      "NoClipboard"
    Option      "NoScrollbars"
    Option      "NoTrayicon"
    Option      "NoEmulatepseudo"
    Option      "NoUnixkill"
    Option      "Winkill"
    Option      "Width"         "800"
    Option      "Height"        "600"
#    Option      "ClipUpdates"   "1"
EndSection

Section "ServerLayout"
    Identifier      "dummy"
    Screen          "dummy"
    InputDevice     "Keyboard1" "CoreKeyboard"
EndSection


More information about the Cygwin-xfree mailing list