modified display-extern.sh
This commit is contained in:
parent
db2082311f
commit
8c4887d583
@ -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 eDP-1-1 --off
|
||||||
xrandr --output HDMI-1-1 --auto
|
xrandr --output $id --auto
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user