cemeth /xorg.conf

# /etc/X11/xorg.conf                                     -*- coding: utf-8 -*-
#-----------------------------------------------------------------------------

#Section "Files"
#	# Path to rgb file (usually rgb.txt, but omit the file extension here)
#	RgbPath      "/usr/share/X11/rgb"
#
#	ModulePath   "/usr/lib/xorg/modules"
#
#	FontPath     "/usr/share/fonts/100dpi"
#	FontPath     "/usr/share/fonts/TTF"
#	FontPath     "/usr/share/fonts/Type1"
#	FontPath     "/usr/share/fonts/cyrillic"
#	FontPath     "/usr/share/fonts/local"
#	FontPath     "/usr/share/fonts/misc"
#	FontPath     "/usr/share/fonts/util"
#EndSection

Section "ServerFlags"
	#Option "DefaultServerLayout" "Layout0"
	Option "DontVTSwitch"       "false"
	Option "DontZap"            "false"
	Option "ZapWarning"         "true"
	Option "DontZoom"           "false"
	Option "AllowMouseOpenFail" "true"
	Option "AllowDeactivateGrabs" "true"
	Option "AllowClosedownGrabs"  "true"
	#Option "Xinerama"             "false"
	#Option "AIGLX"                "true"

	# The following options can also be set at runtime with xset(1)
	#Option "BlankTime"   "10"
	#Option "StandbyTime" "30"   # requires DPMS
	#Option "SuspendTime" "60"   # requires DPMS
	#Option "OffTime"     "120"  # requires DPMS
EndSection

Section "Module"
	#Load  "i2c"
        #Load  "bitmap"
        #Load  "ddc"
	#Load  "dbe"
	#Load  "extmod"
	#Load  "type1"
	#Load  "freetype"
	#Load  "record"
	#Load  "int10"
	#Load  "vbe"
        Load  "glx"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "XkbRules" "xorg"
    Option         "XkbModel" "pc105"
    Option         "XkbLayout" "us,de"
    Option         "XkbVariant" ",nodeadkeys"
    #Option         "XkbSymbols" "pc(pc105)+colemak"
    Option         "XkbOptions" "grp:alt_shift_toggle,grp_led:scroll,compose:menu,ctrl:swapcaps,altwin:super_win,eurosign:e,lv3:ralt_switch"
    Option         "AutoRepeat" "250 50"   # pause, speed
EndSection

Section "InputDevice"
    Identifier     "Mouse0"
    Driver         "evdev"
    Option         "Device" "/dev/input/by-id/usb-Razer_DeathAdder-event-mouse"
EndSection

Section "InputDevice"
    Identifier     "Mouse1"
    Driver         "mouse"
    Option "Device"          "/dev/input/mice"
    Option "Protocol"        "IMPS/2"
    Option "ZAxisMapping"    "4 5"
    Option "Buttons"         "5"
    Option "Emulate3Buttons" "false"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    Option         "DPMS" "true"
    #HorizSync      30.0 - 81.0
    #VertRefresh    56.0 - 75.0
    #Gamma          1
EndSection

Section "Device"
    Identifier     "Graphics0"
    VendorName     "NVIDIA Corporation"
    #ModelName      ""
    #BoardName      ""
    Driver         "nvidia"
    Option "NoLogo"       "true"
    Option "RenderAccel"  "true"
    Option "DamageEvents" "true"   # increases performance
    Option "HWCursor"     "true"
    Option "CursorShadow" "true"   # requires HWCursor true (default)
    #Option "MultisampleCompatibility" "true"
    #Option "ConnectedMonitor" "DFP"
    #Option "FlatPanelProperties" "Scaling = Native"
    Option "TripleBuffer" "true"              # requires 128MB VRAM, and "Sync to VBlank" enabled in `nvidia-settings` for both OpenGL and XV
    Option "BackingStore" "true"              # doesn't work on all systems, may increase performance
    Option "AllowIndirectPixmaps" "true"      # could improve rendering on G80+ chips with > 256 MB VRAM
    #Option "PixmapCacheSize" "200000"
    #Option "OnDemandVBlankInterrupts" "true"  # only fire VBlank interrupts in modes where they are needed
EndSection

Section "Device"
	Identifier "Graphics1"
	VendorName "NVIDIA Corporation"
	#ModelName  ""
	#BoardName  ""
	Driver "nv"
	#Option "FlatPanel"         "true"
	Option "AccelMethod"        "EXA"
	Option "MigrationHeuristic" "greedy"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Graphics0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
        Modes      "nvidia-auto-select"
    EndSubSection
EndSection

Section "ServerLayout"
    Identifier     "Layout0"
    Screen         "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0"    "SendCoreEvents"
EndSection

Section "Extensions"
    Option "Composite" "Enable"
    Option "RENDER"    "Enable"
    Option "DAMAGE"    "Enable"
EndSection

Section "DRI"
    Group "video"
    Mode 0660
EndSection

#-----------------------------------------------------------------------------
#vim: set fenc=utf-8 ft=xf86conf sts=4 sw=4 ts=4 et :