Skip to content

Instantly share code, notes, and snippets.

@frogonwheels
Created May 3, 2010 05:07
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 frogonwheels/387776 to your computer and use it in GitHub Desktop.
Save frogonwheels/387776 to your computer and use it in GitHub Desktop.
#!/bin/sh
xrandr --output DVI-0 --auto --output VGA-0 --auto
sleep 3
xrandr --output DVI-0 --off
sleep 3
# Now need to add this step!
xrandr --output VGA-0 --mode 1280x1024 --pos 0x0 --rotate normal --output S-video --off --output DVI-0 --mode 1280x1024 --pos 0x0 --rotate normal
sleep 3
# No longer works
#xrandr --output DVI-0 --auto --right-of VGA-0
xrandr --output VGA-0 --mode 1280x1024 --pos 0x0 --rotate normal --output S-video --off --output DVI-0 --mode 1280x1024 --pos 1280x0 --rotate normal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment