#!/bin/sh

CHOICE=`cat << EOF | dmenu -font snap -normbg \#000000 -normfg \#666666 -selbg \#222222 -selfg \#888888
mrxvt
aterm
mc
gimp
blender
gqview
firefox
-irssi
-mutt
wmnet -W ppp0
screenshot
EDIT MENU
.bash_profile
.bashrc
.xinitrc
.Xdefaults
.irssi/config
.mrxvtrc
EOF`

#pick_me() {
case ${CHOICE} in
EDIT\ MENU) aterm -e vim `which dmenu.sh` & ;;
screenshot) import -pause 2 -window root -quality 90 ${HOME}/image/snap/`date +%y-%m%d-%H%M`-dwm.png & ;;
\.*) cd && aterm -e vim ${CHOICE} & ;; # Dotfiles
\-*) aterm -e ${CHOICE#\-} & ;; # Term apps
#*\:) aterm -e ${CHOICE%\:} & ;; # Term apps
mc) aterm -e mc -b & ;;
*) ${CHOICE} & ;; # Everything else (X executables)
esac
#}

