Created
March 27, 2015 01:33
-
-
Save j1cs/51ebbb4000425d3183b7 to your computer and use it in GitHub Desktop.
This file contains 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 | |
IN="LVDS1" | |
EXT="VGA1" | |
if (xrandr | grep "$EXT disconnected"); then | |
xrandr --output DVI1 --off --output VIRTUAL1 --off --output LVDS1 --mode 1024x768 --pos 0x0 --rotate normal --output VGA1 --off | |
else | |
xrandr --output DVI1 --off --output VIRTUAL1 --off --output LVDS1 --mode 1024x768 --pos 0x0 --rotate normal --output VGA1 --mode 1440x900 --pos 1024x0 --rotate normal | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment