txgof: made variable uppercase... I got bored, probably - scripts - various script and utils
(HTM) git clone git://z3bra.org/scripts
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit 63d856c03be70f39d3b411059877a02b329ce813
(DIR) parent 2e0a6261e9bee32d21a51c4c1168b31cee6ae5eb
(HTM) Author: z3bra <willy@mailoo.org>
Date: Thu, 5 Feb 2015 14:10:42 +0100
xgof: made variable uppercase... I got bored, probably
Diffstat:
M xgif | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
(DIR) diff --git a/xgif b/xgif
t@@ -20,6 +20,7 @@ esac
# the size of your window manager borders, to include them in the gif
BORDERS=${BORDER:-2}
+FIFO=${FIFO:-/tmp/xgif-$$.fifo}
# let the user grab a window
geom=$(xwininfo|grep -E "Wid|Hei|Abs"|sed 's/.*:\s*//g'|tr '\n' :|sed 's/:$//')
t@@ -35,11 +36,10 @@ w=$(( $w + 2 * $BORDERS))
h=$(( $h + 2 * $BORDERS))
# this hackery serves the purpose of recording until the user press ^D
-fifo="/tmp/xgif-$$.fifo"
-test -p $fifo || mkfifo $fifo
+test -p $FIFO || mkfifo $FIFO
-byzanz-record -x $x -y $y -w $w -h $h -e "cat $fifo" $1 &
+byzanz-record -x $x -y $y -w $w -h $h -e "cat $FIFO" $1 &
# will hold the fifo openned until ^D is pressed
-cat > $fifo
-rm $fifo
+cat > $FIFO
+rm $FIFO