wok-stable view karmen/stuff/karmen-conf @ rev 9059
linux-kvm: update modules list
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 04 12:46:12 2011 +0100 (2011-03-04) |
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