Improved compatibility. Thanks to Maren!!!
Here are the new script.
All the best, Jabiertxo.
El mié, 08-07-2015 a las 03:47 +0200, Maren Hachmann escribió:
Had to add -c to options, to get mouse cursor, too.
Am 08.07.2015 um 03:42 schrieb Maren Hachmann:
Hi Jabier,
I wanted to try the script, but I had to change it so it works for me. I'm on Linux Mint 17.1 Xfce, based on Ubuntu 14.04; beep, byzanz installed. Maybe it's a version problem?
As soon as I started the original script, I got a cross-like cursor. As soon as I clicked with that anywhere, I got
./recordToGif.sh: Zeile 29: Syntaxfehler beim unerwarteten Wort »<« ./recordToGif.sh: Zeile 29: `read X < <(awk -F: '/Absolute upper-left X/{print $2}' <<< "$XWININFO")'
(translates to: syntax error on unexpected word "<" in line 28)
Fortunately, I was able to debug with google's help :)
byzanz also didn't like the parameters formatting --x=$X - but it is happy now with -x $X ...
The attached script works on my setup (although it doesn't want to beep, so I threw that out...). Cool thing :) This will be so helpful when answering a user question :D
Regards, Maren
Am 07.07.2015 um 23:08 schrieb Jabiertxo Arraiza Cenoz:
Thanks Maren!
El mar, 07-07-2015 a las 23:04 +0200, Maren Hachmann escribió:
Thanks for sharing, Jabier! I've always wanted to ask you how you did that :) It's a very useful script.
Am 07.07.2015 um 21:55 schrieb Jabiertxo Arraiza Cenoz:
Here are the script we speack at hackfest I use to record the gifs on 0.92 release page: Need beep and byzanz-record
use as : ./recordToGif.sh 60 /path/to/file.gif where 60 is 60 seconds select the window to record...
--
#!/bin/bash
# Delay before starting DELAY=3
# Sound notification to let one know when recording is about to start (and ends) beep() { /usr/bin/beep }
# Duration and output file if [ $# -gt 0 ]; then D="--duration=$@" else echo Default recording duration 10s to /tmp/recorded.gif D="--duration=10 /tmp/recorded.gif" fi
XWININFO=$(xwininfo) read X < <(awk -F: '/Absolute upper-left X/{print $2}' <<< "$XWININFO") read Y < <(awk -F: '/Absolute upper-left Y/{print $2}' <<< "$XWININFO") read W < <(awk -F: '/Width/{print $2}' <<< "$XWININFO") read H < <(awk -F: '/Height/{print $2}' <<< "$XWININFO")
echo Delaying $DELAY seconds. After that, byzanz will start for (( i=$DELAY; i>0; --i )) ; do echo $i sleep 1 done echo ":::::::::::::::::::::::::::::::::::::::::::::::::::::::" beep byzanz-record --verbose --delay=0 --x=$X --y=$Y --width=$W - -height=$H $D & read FULLDURATION FAKE <<<$(IFS=";"; echo $D) read FAKE DURATION <<<$(IFS="="; echo $FULLDURATION) for (( i=$DURATION; i>0; --i )) ; do if [ $i -ne $DURATION ]; then echo $i Segundos fi sleep 1 done beep
Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/
_______________________________________________ Inkscape-docs mailing list Inkscape-docs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-docs
Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ Inkscape-docs mailing list Inkscape-docs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-docs
participants (1)
-
Jabiertxo Arraiza Cenoz