XF86Config-4 – Dual-Head

Section "ServerLayout"
    Identifier     "Matrox PowerDesk configured."
    Screen      0  "Display 1" RightOf "Display 2"
    Screen         "Display 2" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "PS/2 Mouse" "CorePointer"
EndSection

Section "Files"
    RgbPath     "/usr/X11R6/lib/X11/rgb"
    ModulePath  "/usr/X11R6/lib/modules"
    FontPath    "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
    FontPath    "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
    FontPath    "/usr/local/fonts/unicode"
#   FontPath     "unix/:7101"
    FontPath    "unix/:7100"
    FontPath    "/usr/X11R6/lib/X11/fonts/misc"
#   FontPath     "/usr/X11R6/lib/X11/fonts/misc:unscaled"
#   FontPath     "/usr/X11R6/lib/X11/fonts/misc"
#   FontPath     "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
#   FontPath     "/usr/X11R6/lib/X11/fonts/75dpi"
#   FontPath     "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
#   FontPath     "/usr/X11R6/lib/X11/fonts/100dpi"
#   FontPath     "/usr/X11R6/lib/X11/fonts/Speedo"
#   FontPath     "/usr/X11R6/lib/X11/fonts/PEX"
#   FontPath     "/usr/X11R6/lib/X11/fonts/cyrillic"
#   FontPath     "/usr/X11R6/lib/X11/fonts/Type1"
#   FontPath     "/usr/share/fonts/ttf/western"
#   FontPath     "/usr/share/fonts/ttf/decoratives"
#   FontPath     "/usr/share/fonts/truetype"
#   FontPath     "/usr/share/fonts/truetype/openoffice"
#   FontPath     "/usr/share/fonts/truetype/ttf-bitstream-vera"
#   FontPath     "/usr/share/fonts/latex-ttf-fonts"
#   FontPath     "/usr/X11R6/lib/X11/fonts/defoma/CID"
#   FontPath     "/usr/X11R6/lib/X11/fonts/defoma/TrueType"
EndSection

Section "Module"
    Load  "ddc"
    Load  "GLcore"
    Load  "dbe"
    Load  "extmod"
    Load  "glx"
    Load  "bitmap"
    Load  "speedo"
    Load  "type1"
    Load  "freetype"
    Load  "record"
EndSection

Section "ServerFlags"
    Option "AllowMouseOpenFail" "true"
    Option "Xinerama"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "keyboard"
    Option      "CoreKeyboard"
    Option      "XkbRules" "xfree86"
    Option      "XkbModel" "pc105"
    Option      "XkbLayout" "us"
    #Option      "XkbLayout" "us_intl"
EndSection

Section "InputDevice"
    Identifier  "PS/2 Mouse"
    Driver      "mouse"
    Option      "Protocol" "PS/2"
    Option      "ZAxisMapping" "4 5"
    Option      "Device" "/dev/psaux"
    Option      "Emulate3Buttons" "true"
    Option      "Emulate3Timeout" "70"
    Option      "SendCoreEvents" "true"
EndSection

Section "Monitor"
    Identifier   "Display 1"
    VendorName   "CPQ"

    ModelName    "CPQ1330"
    HorizSync    30.0 - 85.0
    VertRefresh  50.0 - 150.0
    Option       "DPMS" "true"
EndSection

Section "Monitor"
    Identifier   "Display 2"
    VendorName   "CPQ"
    ModelName    "CPQ1330"
    HorizSync    30.0 - 50.0
    VertRefresh  50.0 - 90.0
EndSection

Section "Device"
    Identifier  "MATROX CARD 1"
    Driver      "mga"
    VendorName  "All"
    BoardName   "All"
    BusID       "PCI:1:0:0"
EndSection

Section "Device"
    Identifier  "MATROX CARD 2"
    Driver      "mga"
    VendorName  "All"
    BoardName   "All"
    BusID       "PCI:1:0:0"
    Screen      1
EndSection

Section "Screen"
    Identifier "Display 1"
    Device     "MATROX CARD 1"
    Monitor    "Display 1"
    DefaultDepth     24
    SubSection "Display"
        Depth     24
        Modes    "1024x768" "1024x768" "1024x768" "1024x768" "1024x768"
    EndSubSection
EndSection

Section "Screen"
    Identifier "Display 2"
    Device     "MATROX CARD 2"
    Monitor    "Display 2"
    DefaultDepth     24
    SubSection "Display"
        Depth     24
        Modes    "1024x768"
    EndSubSection
EndSection

Section "DRI"
    Mode         0666
EndSection

oglerc

<!-- I left the RC file almost totally alone, but I run two monitors on a Matrox G400, and so I had to do the following: -->
<geometry>
    <width>400</width>
    <height>300</height>
</geometry>
<geometry_src>user</geometry_src>
<resolution_src>Xinerama</resolution_src>

bashrc

# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

export LANG="en_CA.UTF-8"

# If running interactively, then:
if [ "$PS1" ]; then

    # don't put duplicate lines in the history. See bash(1) for more options
    # export HISTCONTROL=ignoredups

    # enable color support of ls and also add handy aliases
    eval `dircolors -b`
    alias ls='ls --color=auto'
    alias ll='ls -hl'
    alias la='ls -Ah'
    alias x='startx > /var/log/x.log 2>&1'
    alias clear='clear;fortune -ae'
    alias nstll='sudo apt-get install '
    alias upgrade='apt-get update && apt-get dist-upgrade'
    alias rmv='sudo apt-get remove '
    alias apt-get='sudo apt-get'
    alias dpkg='sudo dpkg'
    alias vi='vim'
    alias vii='sudo vim '
    alias reboot='sudo reboot'
    alias halt='sudo halt -p'
    alias card="mount /dev/sda1;ls /mnt/card"
    alias uncard="umount /mnt/card"
    alias key="mount /dev/sda;ls /mnt/key"
    alias unkey="umount /mnt/key"
    alias dos2unix="flip -uv "
    alias unix2dos="flip -mv "
    alias spmlearn='sa-learn --mbox --spam /home/willyyam/Mail/spam;rm /home/willyyam/Mail/spam;touch /home/willyyam/Mail/spam'
    alias pal="pal -r 5"
    alias xconsole="Eterm -t xconsole &"
    alias flug="ssh ohiggins@flug.fis.utoronto.ca"
    alias frozen-bubble="frozen-bubble -ns"

    # set a fancy prompt
    PS1='\[\033[0;32m\]\t \[\033[1;31m\]\w \[\033[0;32m\]]\[\033[0m\] '
  #PS1='\[\033[1;33m\]\t \[\033[1;34m\]\w \[\033[1;33m\]]\[\033[0m\] '

    case $TERM in
    Eterm*)
        PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
        ;;
    urxvt*)
        PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
        ;;
    xterm*)
        PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
        ;;
    xfce4-terminal*)
        PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
        ;;
    rxvt*)
        PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
        ;;
    *)
    esac

    # enable programmable completion features (you don't need to enable
    # this, if it's already enabled in /etc/bash.bashrc).
    #if [ -f /etc/bash_completion ]; then
    #  . /etc/bash_completion
    #fi
fi