Last active
June 23, 2016 10:46
-
-
Save ShawnMcCool/d2389593bb2b277a6ada5a4fd2056b97 to your computer and use it in GitHub Desktop.
XRANDR Scripts for Dutch PHP Conference for 16:9 laptops
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 | |
# "./lowresvga.sh" to enable 1024x768 | |
# "./lowresvga.sh off" to return | |
# This was made for a Thinkpad T450s, substitute your devices. | |
if [ "$1" = "off" ] ; then | |
echo "disabling" | |
xrandr --output DP2 --off | |
xrandr --output eDP1 --mode 1920x1080 | |
else | |
echo "enabling" | |
xrandr --output eDP1 --mode 1024x768 | |
xrandr --output DP2 --mode 1024x768 | |
fi |
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 | |
# "./mediumresvga.sh" to enable 1280x800 | |
# "./mediumresvga.sh off" to return | |
# This was made for a Thinkpad T450s, substitute your devices. | |
if [ "$1" = "off" ] ; then | |
echo "disabling" | |
xrandr --output DP2 --off | |
xrandr --output eDP1 --mode 1920x1080 | |
else | |
echo "enabling" | |
xrandr --output eDP1 --mode 1280x960 | |
xrandr --output DP2 --mode 1280x800 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment