From Wiki

Bash: ScreenshotScript

Linux'ta masa�st� ekran g�r�nt�s�n� alan betik:

#!/bin/bash
# Masa�st� ekran g�r�nt�s�n� alan betik.
# Betigi �alistirdiktan sonra ekranda bir arti isareti
# cikacak, eger masaustune tiklarsaniz t�m masa�st�n�n
# ekran goruntusu alinir, eger bir pencereye tiklarsaniz
# sadece o pencerenin ekran goruntusu alinir.
# Son Degisiklik: 2005.11.03 18:12

DATETIME=`date +%Y.%m.%d_%H.%M.%S`
IMAGE="$HOME/screenshot-${DATETIME}.jpg"

# Ekran g�r�nt�s�n� al.
import -bordercolor black -quality 90 $IMAGE
echo "Ekran G�r�nt�s�: $IMAGE" 

# Goster.
if [ -x /usr/bin/gqview ]; then 
	/usr/bin/gqview $IMAGE &
	exit
elif [ -x /usr/bin/gimv ]; then 
	/usr/bin/gimv $IMAGE &
	exit
elif [ -x /usr/bin/display ]; then
	/usr/bin/display $IMAGE &
	exit
else 
	echo "Benden bu kadar!"
	exit
fi

Retrieved from http://kozgun.net/wiki/pmwiki.php?n=Bash.ScreenshotScript
Page last modified on November 03, 2005, at 07:32 PM