Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement