- #!/bin/bash
- VGA="VGA-0"
- HDMI="HDMI-0"
- if $(xrandr | grep "$VGA connected") ; then
- xrandr --output $VGA --off --output $HDMI --auto
- elif $(xrandr | grep "$HDMI connected") ; then
- xrandr --output $HDMI --off --output $VGA --auto
- fi
SHARE
TWEET
Untitled
a guest
Aug 6th, 2015
151
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data
