Skip to content

Instantly share code, notes, and snippets.

@frogonwheels
Created July 12, 2010 23:35
Show Gist options
  • Save frogonwheels/473225 to your computer and use it in GitHub Desktop.
Save frogonwheels/473225 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
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
#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