wok-next annotate karmen/stuff/karmen-conf @ rev 9849

libgphoto2: Replace libtool with libltdl in depends.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun May 15 21:24:29 2011 +0000 (2011-05-15)
parents
children cb76ed027bff
rev   line source
pankso@2894 1 #!/bin/sh
pankso@2894 2 #
pankso@2894 3 #
pankso@2894 4 : ${DIALOG=dialog}
pankso@2894 5
pankso@2894 6 CONFIG_DIR="$HOME/.config/karmen"
pankso@2894 7
pankso@2894 8 # Dialog menu.
pankso@2894 9 exec 3>&1
pankso@2894 10 value=`$DIALOG --clear \
pankso@2894 11 --title " Karmen settings " \
pankso@2894 12 --menu "" 15 70 5 \
pankso@2894 13 "autostart" "Autostarted applications" \
pankso@2894 14 "wbar" "Wbat icons panel configuration" \
pankso@2894 15 "quit" "Exit Karmen configuration" \
pankso@2894 16 2>&1 1>&3`
pankso@2894 17 retval=$?
pankso@2894 18 exec 3>&-
pankso@2894 19 case $retval in
pankso@2894 20 0)
pankso@2894 21 continue ;;
pankso@2894 22 1)
pankso@2894 23 echo "Cancel pressed."
pankso@2894 24 exit 0 ;;
pankso@2894 25 255)
pankso@2894 26 if test -n "$value"; then
pankso@2894 27 echo "$value"
pankso@2894 28 else
pankso@2894 29 echo "ESC pressed."
pankso@2894 30 exit 0
pankso@2894 31 fi ;;
pankso@2894 32 esac
pankso@2894 33
pankso@2894 34 case $value in
pankso@2894 35 autostart)
pankso@2894 36 nano $CONFIG_DIR/autostart.sh
pankso@2894 37 exec $PWD/karmen-dialog ;;
pankso@2894 38 wbar)
pankso@2894 39 nano $CONFIG_DIR/wbar
pankso@2894 40 exec $PWD/karmen-dialog ;;
pankso@2894 41 quit)
pankso@2894 42 continue ;;
pankso@2894 43 esac
pankso@2894 44
pankso@2894 45 exit 0
pankso@2894 46