#!/bin/sh
#
# By Kendall Weaver <kendalltweaver@gmail.com>
#
# Simple tool to change themes in SLiM

list=$(dir /usr/share/slim/themes)

theme=$(zenity --title "SLiM Theme Selector" --list --text "Choose a theme." --column "Available Themes" $list)

if [ $theme = "" ]; then
	exit 0
fi

rm /usr/share/slim/themes/conf-default
ln -s /usr/share/slim/themes/$theme /usr/share/slim/themes/conf-default

exit 0
