+#if [ -z "$Y" ]; then
+if [ -z "$RESOLUTION" ]; then
+ #echo "usage: $BASENAME <x-res> <y-res> <interface>"
+ echo "usage: $BASENAME <x-res>x<y-res> <interface>"
+ echo "example:"
+ echo ""
+ echo " $BASENAME HDMI-2 1680x1050"
+ echo ""
+ echo "for simpler usage, try xrandr directly, like:"
+ echo ""
+ echo " xrandr --output HDMI-2 --mode 1680x1050"
+ echo ""
+ echo "Available screens and resolutions"
+ echo "---------------------------------"
+ echo ""
+ xrandr