Change to a two monitor layout by default

This commit is contained in:
David Thurstenson 2016-06-24 20:40:20 -05:00
parent b11d0005e9
commit 569209e764
1 changed files with 3 additions and 4 deletions

View File

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