wok-6.x diff karmen/stuff/karmen-conf @ rev 2894

Add karmen Window manager (the smaller for now...)
author Christophe Lincoln <pankso@slitaz.org>
date Tue May 05 02:12:07 2009 +0200 (2009-05-05)
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 May 05 02:12:07 2009 +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 +