Skip to content

Instantly share code, notes, and snippets.

@ShawnMcCool
Last active June 23, 2016 10:46
Show Gist options
  • Save ShawnMcCool/d2389593bb2b277a6ada5a4fd2056b97 to your computer and use it in GitHub Desktop.
Save ShawnMcCool/d2389593bb2b277a6ada5a4fd2056b97 to your computer and use it in GitHub Desktop.
XRANDR Scripts for Dutch PHP Conference for 16:9 laptops
#!/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
#!/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