Skip to content

Instantly share code, notes, and snippets.

@rinx
Created February 6, 2014 09:20
Show Gist options
  • Select an option

  • Save rinx/8840933 to your computer and use it in GitHub Desktop.

Select an option

Save rinx/8840933 to your computer and use it in GitHub Desktop.
#!/bin/sh
xrandr | grep "1229x922"
if [ $? -eq 0 ]; then
xrandr --output LVDS1 --scale 1x1 --panning 1024x768
else
xrandr --output LVDS1 --scale 1.2x1.2 --panning 1229x922
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment