#!/bin/bash

ICON="/usr/share/icons/hicolor/48x48/apps/random-background.png"

	select=$(yad --tabnum=1 --columns=1 --width=400 --height=100 \
	--fixed --center --text="Choose between Settings" \
    --window-icon=$ICON --title="Set Wallpaper Settings" --text-align=center \
	--button=Cancel!/usr/share/random-background/icons/cancel.png!:1 --form \
	--field="Local Folder Wallpaper Setting"'!folder!':FBTN \
	'bash -c "echo local_wallpapers ; kill -USR2 $YAD_PID"' \
	--field="Networking Wallpaper Settings"'!/usr/share/random-background/icons/web.png!':FBTN \
	'bash -c "echo net_wallpapers ; kill -USR2 $YAD_PID"')
if [ -n "${select}" ]; then
case $select in
'local_wallpapers')
/usr/share/random-background/mate/data/changes.py
 ;;

'net_wallpapers')
/usr/share/random-background/mate/data/net/changes.py
 ;;
 esac
    fi


