wok diff karmen/stuff/karmen-conf @ rev 6961

xorg-server: add config dir
author Antoine Bodin <gokhlayeh@slitaz.org>
date Tue Oct 26 13:15:37 2010 +0200 (2010-10-26)
parents
children cb76ed027bff
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/karmen/stuff/karmen-conf	Tue Oct 26 13:15:37 2010 +0200
     1.3 @@ -0,0 +1,46 @@
     1.4 +#!/bin/sh
     1.5 +#
     1.6 +# 
     1.7 +: ${DIALOG=dialog}
     1.8 +
     1.9 +CONFIG_DIR="$HOME/.config/karmen"
    1.10 +
    1.11 +# Dialog menu.
    1.12 +exec 3>&1
    1.13 +value=`$DIALOG  --clear \
    1.14 +--title " Karmen settings " \
    1.15 +--menu "" 15 70 5 \
    1.16 +"autostart" "Autostarted applications" \
    1.17 +"wbar" "Wbat icons panel configuration" \
    1.18 +"quit" "Exit Karmen configuration" \
    1.19 +2>&1 1>&3`
    1.20 +retval=$?
    1.21 +exec 3>&-
    1.22 +case $retval in
    1.23 +	0)
    1.24 +		continue ;;
    1.25 +	1)
    1.26 +		echo "Cancel pressed."
    1.27 +		exit 0 ;;
    1.28 +	255)
    1.29 +		if test -n "$value"; then
    1.30 +			echo "$value"
    1.31 +		else
    1.32 +			echo "ESC pressed."
    1.33 +			exit 0
    1.34 +		fi ;;
    1.35 +esac
    1.36 +
    1.37 +case $value in
    1.38 +	autostart)
    1.39 +		nano $CONFIG_DIR/autostart.sh 
    1.40 +		exec $PWD/karmen-dialog ;;
    1.41 +	wbar)
    1.42 +		nano $CONFIG_DIR/wbar
    1.43 +		exec $PWD/karmen-dialog ;;
    1.44 +	quit)
    1.45 +		continue ;;
    1.46 +esac
    1.47 +
    1.48 +exit 0
    1.49 +