Merge branch 'master' of vps:git/vcsh/xinitrc
This commit is contained in:
commit
b57b1a2d91
|
@ -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