Add conditions for disconnected HDMI on dtarchaio
This commit is contained in:
parent
1698c53089
commit
112ced7f3d
|
@ -20,12 +20,14 @@ case "$(hostname)" in
|
||||||
hdmi="HDMI-1"
|
hdmi="HDMI-1"
|
||||||
|
|
||||||
case "$SRANDRD_ACTION" in
|
case "$SRANDRD_ACTION" in
|
||||||
"$hdmi connected") xrandr --output $hdmi --auto --right-of $mainoutput
|
"$hdmi connected")
|
||||||
|
xrandr --output $hdmi --auto --right-of $mainoutput
|
||||||
maptouchscreen "$tsid" "$mainoutput"
|
maptouchscreen "$tsid" "$mainoutput"
|
||||||
setpasink hdmi
|
setpasink hdmi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"$hdmi disconnected") xrandr --output $hdmi --off --output $mainoutput --auto
|
"$hdmi disconnected")
|
||||||
|
xrandr --output $hdmi --off --output $mainoutput --auto
|
||||||
maptouchscreen "$tsid" "$mainoutput"
|
maptouchscreen "$tsid" "$mainoutput"
|
||||||
setpasink analog
|
setpasink analog
|
||||||
;;
|
;;
|
||||||
|
@ -37,8 +39,16 @@ case "$(hostname)" in
|
||||||
mainoutput="eDP1"
|
mainoutput="eDP1"
|
||||||
hdmi="HDMI1"
|
hdmi="HDMI1"
|
||||||
|
|
||||||
xrandr --output $mainoutput --auto --output $hdmi --right-of $mainoutput
|
case "$SRANDRD_ACTION" in
|
||||||
maptouchscreen "$tsid" "$mainoutput"
|
"$hdmi connected")
|
||||||
|
xrandr --output $mainoutput --auto --output $hdmi --right-of $mainoutput
|
||||||
|
maptouchscreen "$tsid" "$mainoutput"
|
||||||
|
;;
|
||||||
|
"$hdmi disconnected")
|
||||||
|
xrandr --output $mainoutput --auto
|
||||||
|
maptouchscreen "$tsid" "$mainoutput"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue