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"
|
||||
|
||||
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"
|
||||
setpasink hdmi
|
||||
;;
|
||||
|
||||
"$hdmi disconnected") xrandr --output $hdmi --off --output $mainoutput --auto
|
||||
"$hdmi disconnected")
|
||||
xrandr --output $hdmi --off --output $mainoutput --auto
|
||||
maptouchscreen "$tsid" "$mainoutput"
|
||||
setpasink analog
|
||||
;;
|
||||
|
@ -37,8 +39,16 @@ case "$(hostname)" in
|
|||
mainoutput="eDP1"
|
||||
hdmi="HDMI1"
|
||||
|
||||
case "$SRANDRD_ACTION" in
|
||||
"$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
|
||||
|
||||
|
|
Loading…
Reference in New Issue