#!/bin/sh
#
# Note that any setup should come before the sessreg command as
# that must be 'exec'ed for the pid to be correct (sessreg uses the parent
# pid)
#
# Note that output goes into the .xsession-errors file for easy debugging
#
PATH="/usr/bin:$PATH:/bin:/usr/bin"

xrandr --newmode "1600x1200_60.00"  161.00  1600 1712 1880 2160  1200 1203 1207 1245 -hsync +vsync
xrandr --newmode "1440x900_60.00"  106.50  1440 1528 1672 1904  900 903 909 934 -hsync +vsync
xrandr --newmode "1280x1024_60.00"  109.00  1280 1368 1496 1712  1024 1027 1034 1063 -hsync +vsync
xrandr --newmode "1280x960_60.00"  101.25  1280 1360 1488 1696  960 963 967 996 -hsync +vsync
xrandr --newmode "1024x768_60.00"   63.50  1024 1072 1176 1328  768 771 775 798 -hsync +vsync

xrandr --addmode DVI-1 "1600x1200_60.00"
xrandr --addmode DVI-1 "1440x900_60.00"
xrandr --addmode DVI-1 "1280x1024_60.00"
xrandr --addmode DVI-1 "1280x960_60.00"
xrandr --addmode DVI-1 "1024x768_60.00"

xrandr --output DVI-1 --mode 1440x900_60.00 --primary
xrandr --output DVI-1 --mode 1440x900_60.00 --auto
xrandr --fbmm 367x229 --output DVI-1

xrandr --rmmode 800x600
xrandr --rmmode 640x480
