diff --git a/display-extern.sh b/display-extern.sh index 841b255..3143632 100755 --- a/display-extern.sh +++ b/display-extern.sh @@ -3,10 +3,12 @@ echo $id id=$(xrandr) id="HDMI${id#*HDMI}" #remove prefix to "HDMI" this does the # the * signifies what to remove id="${id%%[[:space:]]*}" -echo $id - - -xrandr --output eDP-1-1 --off +echo $id "On" +id2=$(xrandr) +id2="eDP${id2#*eDP}" +id2="${id2%%[[:space:]]*}" +echo $id2 "Off" +xrandr --output $id2 --off xrandr --output $id --auto