Saturday, 25 February 2012

Changing the primary monitor in Linux Mint (and other distributions)

*** Update: To persist this change between machine restarts, see this post ***

1) Save this script as

 # Author: Andrew Martin  
 # Credit:  
 echo "Enter the primary display from the following:"               # prompt for the display  
 xrandr --prop | grep "[^dis]connected" | cut --delimiter=" " -f1     # query connected monitors  
 read choice                                        # read the users's choice of monitor  
 xrandr --output $choice --primary                         # set the primary monitor  

2) Make executable with:
 chmod +x  

3) Execute by typing:


4) Enter the name of the monitor you want to be the primary monitor.

All credit to the article here.

1 comment:

Please leave a comment if you find this blog helpful or interesting! I'd love to hear from you!