slitaz-tools rev 689 4.6

tazbox: Add on screen notification function
author Christophe Lincoln <pankso@slitaz.org>
date Wed Feb 29 20:12:18 2012 +0100 (2012-02-29)
parents 8b00d47c7c0d
children b5b525d51ba0
files tazbox/tazbox
line diff
     1.1 --- a/tazbox/tazbox	Wed Feb 29 02:23:59 2012 +0100
     1.2 +++ b/tazbox/tazbox	Wed Feb 29 20:12:18 2012 +0100
     1.3 @@ -330,6 +330,14 @@
     1.4  		newfile ;;
     1.5  	all-apps)
     1.6  		all_apps ;;
     1.7 +	notify|-n)
     1.8 +		# On screen notification box.
     1.9 +		time="$3"
    1.10 +		[ "$time" ] || time=4
    1.11 +		yad --text="<b>$2</b>" --width=520 --height=80 \
    1.12 +			--center --on-top --image=info --image-on-top \
    1.13 +			--timeout=$time --skip-taskbar --no-buttons \
    1.14 +			--borders=12 --undecorated ;;
    1.15  	*)
    1.16  		usage ;;
    1.17  esac