13 lines
256 B
Bash
Executable File
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
|
|
|
|
|