Choosing Primary Monitor on Linux

We use the following command to identify the detected monitors:

$ xrandr

Let’s assume that there are two monitors: VGA1 and HDMI1. To set the primary monitor:

$ xrandr --output HDMI1 --primary