commit - be6d11c1e49d568aba768efb95aa954d83051c2e
commit + ef5589ffdbfb09854993df666cf9ef4f697015f6
blob - 0107c40e909fca9021d1bea91ba71cf0bbb31e9a
blob + 5ba7c8de3b4b7c32be3214249b6f0955294cb4c4
--- dtoogle.sh
+++ dtoogle.sh
fi
# Internal on and extend screen on all displays by default
else
- build_xrandr_string "--auto" "--auto"
+ build_xrandr_string "--auto" "--auto" "--right-of"
fi
}
function usage()
{
- echo "`basename $0` [-ceix] [-mnv] [-lr] -p profile"
+ echo "`basename $0` [-ceix] [-hmnv] [-lr] -p profile"
echo
echo "Display Options:"
echo " -c Clone screen on all displays"
pg "[default]"
echo
echo "General Options:"
+ echo " -h Show this help"
echo " -m Show all available modes"
echo " -n Dry run. Do not run xrand. Implies -v"
echo " -v Be more verbose"
# Additional options for xrandr
XRANDROPTS=""
-while getopts "ciemnrlp:vx" opt; do
+while getopts "ciehmnrlp:vx" opt; do
case $opt in
c)
CFLAG=1
p)
[ ! -z "$OPTARG" ] && PROFILE=$OPTARG
;;
+ h)
+ usage
+ exit 1
+ ;;
*)
usage
pr "Option not found"