Ubuntu Gnome Linux set primary monitor using command line
xrandr --output VGA1 --primary --left-of LVDS1
here VGA1 is monitor and LVDS1 is laptop screen
xrandr --output VGA1 --primary --left-of LVDS1
here VGA1 is monitor and LVDS1 is laptop screen