#!/bin/sh case $1 in same) xrandr --output VGA-1 --same-as LVDS-1 ;; right) xrandr --output VGA-1 --right-of LVDS-1 ;; left) xrandr --output VGA-1 --left-of LVDS-1 ;; *) echo $0 "same|right|left" exit 1 ;; esac