Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # This script written by Erwin Kwolek is under public domain
- # Can be improved with screen name detection
- First="LVDS"
- Second="VGA-0"
- if [[ `xrandr --current | grep " connected" | wc -l` == 2 ]]
- # if there is two screens connected, set the second one at the left to make a wide desktop
- then xrandr --output $Second --left-of $First
- xrandr --output $First --mode 1600x1200 # because new xorg autodetection doesn t always work
- # else, set the only one as the only desktop available
- else xrandr --output $First --pos 0x0
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement