Remap touchscreen on HDMI disconnect

This commit is contained in:
David Thurstenson 2016-08-05 12:15:43 -05:00
parent 27e06db39b
commit d5d0006e41
1 changed files with 1 additions and 0 deletions

View File

@ -6,6 +6,7 @@ case "$SRANDRD_ACTION" in
xinput --map-to-output $(xinput list --id-only "ELAN Touchscreen") eDP1
pacmd set-default-sink 0;;
"HDMI1 disconnected") xrandr --output HDMI1 --off --output eDP1 --auto
xinput --map-to-output $(xinput list --id-only "ELAN Touchscreen") eDP1
pacmd set-default-sink 1;;
esac