#!/bin/bash
EXT1=`xrandr --current | sed 's/^\(.*\) connected.*$/\1/p;d' | grep -v ^eDP | head -n 1`
EXT2=`xrandr --current | sed 's/^\(.*\) connected.*$/\1/p;d' | grep HDMI | head -n 1`
INT=`xrandr --current | sed 's/^\(.*\) connected.*$/\1/p;d' | grep -v ^DP | head -n 1`
xfconf-query -c xsettings -p /Xft/DPI -s 96
xfconf-query -c xfce4-panel -p /panels/panel-1/size -s 28
xrandr \
--output VIRTUAL1 --off \
--output ${INT} --off \
--output ${EXT2} --mode 1680x1050 --pos 0x150 --rotate normal \
--output ${EXT1} --mode 1920x1200 --pos 1680x0 --rotate normal --primary