wok-6.x view karmen/stuff/karmen-conf @ rev 7691
add:fcitx-configtool,the fcitx chinese input-method GUI-configtool
author | fireflyoo <lufeng369@gmail.com> |
---|---|
date | Sat Dec 18 23:02:11 2010 +0800 (2010-12-18) |
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