Skip to content

Instantly share code, notes, and snippets.

@AlejandroPerezMartin
Last active August 29, 2015 14:02
Show Gist options
  • Save AlejandroPerezMartin/6009843f612bba36269c to your computer and use it in GitHub Desktop.
Save AlejandroPerezMartin/6009843f612bba36269c to your computer and use it in GitHub Desktop.
#!/bin/bash
# Calculate parameters
cvt 1920 1080
# Create new mode
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
# Add new mode to screen
xrandr --addmode VGA-0 "1920x1080_60.00"
# Set mode to screen
xrandr --auto --output VGA-0 --primary --mode 1920x1080_60.00 --left-of DVI-0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment