if[$#-eq"$NO_ARGS"]# Script invoked with no command-line args?
then
echo"Usage: `basename $0` options (-ms)"
echo"-m multi desktop (laptop with external monitor)"
echo"-s single desktop (no external monitor)"
exit$E_OPTERROR# Exit and explain usage.
# Usage: scriptname -options
# Note: dash (-) necessary
fi
getopts":ms" Option
case$Optionin
m )echo"copying multi display config";sudocp ~/Documents/xorg.dual.conf /etc/X11/xorg.conf;sudocp ~/Documents/monitors.dual.xml ~/.config/monitors.xml;;
s )echo"copying single display config";sudocp ~/Documents/xorg.single.conf /etc/X11/xorg.conf;sudocp ~/Documents/monitors.single.xml ~/.config/monitors.xml;;