Here is my main file. its a quick fix and kind of dirty but it works. I think its the two export lines that you actually need
#!/bin/sh
export SDL_NOMOUSE=1
export HOME=/usr/local/home
cd /usr/local/dmenu/scripts/volset
./readvol
/usr/local/sbin/brightness.set
#cd /usr/local/dmenu
#./dmenu
cd...