Created
April 27, 2011 03:27
-
-
Save milin/943666 to your computer and use it in GitHub Desktop.
my script to make my external monitor the primary display if the ext monitor is connected
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| NR_OF_MONITORS=$(xrandr -d :0 -q | grep ' connected' | wc -l) | |
| if [ $NR_OF_MONITORS = "2" ]; then | |
| xrandr --output DFP1 --primary | |
| fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment