wok-4.x view karmen/stuff/karmen-conf @ rev 4501

Add gmpc, gmpc-dev (lightweight, powerful MPD client)
author Rohit Joshi <jozee@slitaz.org>
date Fri Nov 20 15:32:34 2009 +0000 (2009-11-20)
parents
children
line source
1 #!/bin/sh
2 #
3 #
4 : ${DIALOG=dialog}
6 CONFIG_DIR="$HOME/.config/karmen"
8 # Dialog menu.
9 exec 3>&1
10 value=`$DIALOG --clear \
11 --title " Karmen settings " \
12 --menu "" 15 70 5 \
13 "autostart" "Autostarted applications" \
14 "wbar" "Wbat icons panel configuration" \
15 "quit" "Exit Karmen configuration" \
16 2>&1 1>&3`
17 retval=$?
18 exec 3>&-
19 case $retval in
20 0)
21 continue ;;
22 1)
23 echo "Cancel pressed."
24 exit 0 ;;
25 255)
26 if test -n "$value"; then
27 echo "$value"
28 else
29 echo "ESC pressed."
30 exit 0
31 fi ;;
32 esac
34 case $value in
35 autostart)
36 nano $CONFIG_DIR/autostart.sh
37 exec $PWD/karmen-dialog ;;
38 wbar)
39 nano $CONFIG_DIR/wbar
40 exec $PWD/karmen-dialog ;;
41 quit)
42 continue ;;
43 esac
45 exit 0