#!/bin/sh out=`xrandr --query | grep " connected" | sed /eDP/d | cut -d\ -f 1` xrandr --output eDP-1 --off --output $out --auto