Skip to content

Instantly share code, notes, and snippets.

@spscream
Created January 11, 2013 20:07
Show Gist options
  • Select an option

  • Save spscream/4513574 to your computer and use it in GitHub Desktop.

Select an option

Save spscream/4513574 to your computer and use it in GitHub Desktop.
#!/bin/bash
# RESOLUTION SETTINGS
# This sets your VGA1 monitor to its best resolution.
xrandr --output VGA1 --mode 1920x1080 --rate 60
# This sets your laptop monitor to its best resolution.
xrandr --output LVDS1 --mode 1366x768--rate 60
# MONITOR ORDER
# Put the Laptop right, VGA1 monitor left
# xrandr --output VGA1 --left-of LVDS1
# Put the Laptop left, VGA1 monitor right
xrandr --output LVDS1 --left-of VGA1
# PRIMARY MONITOR
# This sets your laptop monitor as your primary monitor.
xrandr --output LVDS1 --primary
# This sets your VGA monitor as your primary monitor.
# xrandr --output VGA1 --primary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment