Remap touchscreen on HDMI disconnect
This commit is contained in:
parent
27e06db39b
commit
d5d0006e41
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue