2016-03-23 23:24:32 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
|
|
case "$SRANDRD_ACTION" in
|
2016-08-12 13:07:00 +00:00
|
|
|
"HDMI-1 connected") xrandr --output HDMI-1 --auto --right-of eDP-1
|
2016-11-04 14:33:27 +00:00
|
|
|
xinput --map-to-output $(xinput list --id-only "ELAN Touchscreen") eDP-1
|
2016-04-18 16:42:01 +00:00
|
|
|
pacmd set-default-sink 0;;
|
2016-08-12 13:07:00 +00:00
|
|
|
"HDMI-1 disconnected") xrandr --output HDMI-1 --off --output eDP-1 --auto
|
2016-11-04 14:33:27 +00:00
|
|
|
xinput --map-to-output $(xinput list --id-only "ELAN Touchscreen") eDP-1
|
2016-04-18 16:42:01 +00:00
|
|
|
pacmd set-default-sink 1;;
|
2016-03-23 23:24:32 +00:00
|
|
|
esac
|
|
|
|
|