sd
This commit is contained in:
parent
e3f65318ae
commit
c101b90396
@ -3,10 +3,12 @@ echo $id
|
|||||||
id=$(xrandr)
|
id=$(xrandr)
|
||||||
id="HDMI${id#*HDMI}" #remove prefix to "HDMI" this does the # the * signifies what to remove
|
id="HDMI${id#*HDMI}" #remove prefix to "HDMI" this does the # the * signifies what to remove
|
||||||
id="${id%%[[:space:]]*}"
|
id="${id%%[[:space:]]*}"
|
||||||
echo $id
|
echo $id "On"
|
||||||
|
id2=$(xrandr)
|
||||||
|
id2="eDP${id2#*eDP}"
|
||||||
xrandr --output eDP-1-1 --off
|
id2="${id2%%[[:space:]]*}"
|
||||||
|
echo $id2 "Off"
|
||||||
|
xrandr --output $id2 --off
|
||||||
xrandr --output $id --auto
|
xrandr --output $id --auto
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user