From c101b903961bfc93843eb0375ef58daf8c56da72 Mon Sep 17 00:00:00 2001 From: ccppi Date: Wed, 13 Mar 2024 09:32:03 +0100 Subject: [PATCH] sd --- display-extern.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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