#!/bin/bash
# This script, made by Daniel Holm <admin@danielholm.se>, makes it easier to switch between two different monitors using disper.
# 100131

#When run, a zenity window apears and asks to ither activate Internal or External screen.
ans=$(zenity  --list  --title="Disper" --text "Choose monitor setting." --radiolist  --column "" --column "" TRUE Internal FALSE External FALSE Clone FALSE Extend); echo $ans

if [ $ans == Internal ]; then
	disper -s

elif [ $ans == External ]; then
	disper -S

elif [ $ans == Clone ]; then
	disper -c

elif [ $ans == Extend ]; then
	disper -e

else
	echo None chosen.
fi

exit 0
