4 question

KUTYLA Peggy peggy.kutyla at laposte.net
Tue Feb 8 19:58:26 CET 2005


Le mardi 08 février 2005 à 23:47 +0330, Navid a écrit :
> Hello
> 
>  I'm newbie in XFce ;) In fact I use KDE but my PIIsystem is yoo old and 
> slow for running KDE so I want migrate to XFce but have some problems::
> 1.I serach a color picker .( I use corently Kcolorchooser !!)

look at http://lunar-linux.org/pipermail/xfce/2005-January/012500.html

> 5.Is any screnshot applet for XFce panel?

a little more complete :

#! /bin/bash

TITBOX=Capture
DECO=/$HOME/bin/screenshot.xpm
SSDIR=$HOME/documents/images/screenshots
NAME=$(date +%y%m%d_%H%M%S)
TMPA=~/tmp/accueil.$$
TMPO=~/tmp/other.$$
FMT=png

db_accueil() {
Xdialog  --title $TITBOX\
	 --icon $DECO\
	 --no-tags\
	 --radiolist "Choisissez l'action." 12 28 1\
		 "1" "Sélection & Fenêtre" off\
		 "2" "Plein écran" on\
		  2> $TMPA }


db_autre() {
Xdialog  --title $TITBOX\
	 --icon $DECO\
	 --spinbox " " 10 28 0 10 2 "seconde(s)"\
	 2> $TMPO }

programme() {
db_accueil
case $? in
255|1)  # An error occured or the box was closed | Cancel/No pressed
	rm -f $TMPA	
	exit
;;
0) # All OK
	CHOIX=$(cat $TMPA)
	rm -f $TMPA
	case $CHOIX in
	1)
		import -quality 72 $SSDIR/$NAME.$FMT
		display $SSDIR/$NAME.$FMT
	;;
	2)
		db_autre
		case $? in
		255) # An error occured or the box was closed
			rm -f $TMPO
			exit
		;;
		1) # Cancel/No pressed
			rm -f $TMPO
			programme
		;;
		0) # All OK
			CHOIX=$(cat $TMPO)
			rm -f $TMPO
			sleep "$CHOIX"s
			import -quality 72 -window root $SSDIR/$NAME.$FMT
			display $SSDIR/$NAME.$FMT
		;;
		esac
	;;
	esac
;;
esac }

mkdir -p $SSDIR
programme

-- 
Peggy Kutyla - peggy.kutyla at laposte.net
Linux Registered User 328488




More information about the Xfce mailing list