diff --git a/display-extern.sh b/display-extern.sh index 7d8f408..841b255 100755 --- a/display-extern.sh +++ b/display-extern.sh @@ -1,4 +1,12 @@ +echo $id +#id="asdfsadf HDMI-1.1 asdfsdfas sfdsa" +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 -xrandr --output HDMI-1-1 --auto +xrandr --output $id --auto