#!/bin/bash
# Setdisplays - Change Monitor Layout predefined arrangment.
# Version 0.2

case "$1" in
  default)  secondaries='--output VGA-0  --off  --output HDMI-0 --off' ;;
  oneabove) secondaries='--output VGA-0  --auto --above LVDS'          ;;
  rightof)  secondaries='--output VGA-0  --auto --right-of LVDS'       ;;
  hdtv)     secondaries='--output HDMI-0 --auto'                       ;;
  *)
    echo "Usage: $0 PROFILE"
    exit 1
esac

${SETDISPLAYS_DBG:+echo} xrandr --output LVDS --auto --primary $secondaries
