Skip to content

Instantly share code, notes, and snippets.

@ShawnMcCool

ShawnMcCool/lowresvga.sh

Last active Jun 23, 2016
Embed
What would you like to do?
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
You can’t perform that action at this time.