wok-current view karmen/stuff/karmen-conf @ rev 4733
Add: libmagic, libmagic-dev from File package.
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Thu Jan 07 11:59:35 2010 +0100 (2010-01-07) |
parents | |
children | cb76ed027bff |
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