Skip to content

Instantly share code, notes, and snippets.

@alexanderjeurissen
Last active March 1, 2017 21:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexanderjeurissen/144371de0631bf39e3beded073ed0bf5 to your computer and use it in GitHub Desktop.
Save alexanderjeurissen/144371de0631bf39e3beded073ed0bf5 to your computer and use it in GitHub Desktop.
#!/bin/bash
# original author of this snippet: Esjee
monitor=`xrandr | grep -i edp | cut -d " " -f 1`
xrandr --newmode "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
xrandr --addmode $monitor 1440x900_60.00
xrandr --output $monitor --mode 1440x900_60.00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment