modified display-extern.sh

This commit is contained in:
ccppi 2024-03-13 08:56:53 +01:00
parent db2082311f
commit 8c4887d583

View File

@ -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