#!/bin/sh -efu

PATH="/usr/lib/alterator-x11:$PATH"

show_help(){
  cat <<EOF
monitor_setup -- set monitor parameters in xorg.conf

Usage: monitor_setup <monitor name> <config file>
EOF
exit 1
}

[ "$#" = 2 ] || show_help

mon="$1";shift
config="$1";shift

moninfo "$mon" | xconf -N "$mon" "$config" "$config"
