tRemoved xrecord (in favor to xgif) - scripts - various script and utils
 (HTM) git clone git://z3bra.org/scripts
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) commit 78e3d0b5852605ab97995459201119c5c7bdb02c
 (DIR) parent 13474a954659932ba0cacf0c3e74625fea0eaad4
 (HTM) Author: z3bra <willy@mailoo.org>
       Date:   Tue,  4 Nov 2014 16:28:27 +0100
       
       Removed xrecord (in favor to xgif)
       
       Diffstat:
         D xrecord                             |      48 -------------------------------
       
       1 file changed, 0 insertions(+), 48 deletions(-)
       ---
 (DIR) diff --git a/xrecord b/xrecord
       t@@ -1,48 +0,0 @@
       -#!/bin/bash
       -#
       -# record a window as a gif
       -
       -# Default duration
       -DURATION=${1:-16}
       -
       -# windows border size
       -BORDERS=5
       -
       -# dumb user is dumb
       -usage() {
       -    echo "usage: $(basename $0) [-h] [-d <duration>] <filename>"
       -}
       -
       -while getopts "hd:" opt; do
       -    case $opt in
       -        d) DURATION=$OPTARG ;;
       -        *) usage; exit 1;;
       -    esac
       -done
       -
       -# Let user select a window to extract relevant infos
       -# Clicking on root window works
       -geometry=$(xwininfo \
       -    | grep -E "Width|Height|Absolute upper-left" \
       -    | cut -d: -f2 \
       -    | tr '\n' ' ' \
       -    | sed 's/^\s*//;s/\s*$//;s/\s\+/:/g')
       -
       -x=$(echo $geometry | cut -d: -f1)
       -y=$(echo $geometry | cut -d: -f2)
       -w=$(echo $geometry | cut -d: -f3)
       -h=$(echo $geometry | cut -d: -f4)
       -
       -shift $(( OPTIND - 1 ))
       -
       -# don't forget the filename !
       -test -n "$1" && OUTFILE=$1 || { usage; exit 1; }
       -
       -# add border size to width/height
       -w=$(( w + 2 * $BORDERS ))
       -h=$(( h + 2 * $BORDERS ))
       -
       -# actually record...
       -byzanz-record -x $x -y $y -w $w -h $h -d $DURATION $OUTFILE
       -
       -exit 0