Posted: Sun 24 Apr 2011, 13:10 Post subject:
scrot-x Subject description: a fast screenshot tool
basically this is a script that uses scrot to create screenshots
the default scrot save names are very long so this script changes the screenshot names to xxxx.png
first create the "images" folder in the root folder
place this script in /usr/bin/scrot-x, don't forget to chmod +x it
scrot-x
Code:
#! /bin/bash
number=`sed -n "17 p" "$0"`
keep=$number
delay=0$1
if [ $delay -lt 1 ];
then
delay=0
fi
len=${#number}
while [ $len -lt 4 ];
do
number=0$number
len=$(($len+1))
done
scrot $number'.png' -d $delay -e 'mv $f ~/images/ & viewnior ~/images/$f' | sed -i "17s/$keep/$(($keep + 1))/" /usr/bin/scrot-x
exit
1
to bind it to your print screenshot key first check which key matches your Print screenshot button
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum