scripts/display-extern.sh
2024-03-13 08:56:53 +01:00

13 lines
256 B
Bash
Executable File

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 $id --auto