Skip to content

Instantly share code, notes, and snippets.

@bernerdschaefer
Created January 26, 2016 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bernerdschaefer/63b43a889d6adff888ea to your computer and use it in GitHub Desktop.
Save bernerdschaefer/63b43a889d6adff888ea to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
#
# DEPENDENCIES:
# bynanz
# xdotool
echo | dmenu -p "Enter to set X/Y start"
eval $(xdotool getmouselocation --shell)
STARTX=$X
STARTY=$Y
echo | dmenu -p "Enter to set X/Y end"
eval $(xdotool getmouselocation --shell)
ENDX=$X
ENDY=$Y
WIDTH=$(( $ENDX - $STARTX ))
HEIGHT=$(( $ENDY - $STARTY ))
duration=$(echo | dmenu -p "Duration:")
byzanz-record \
-c \
-x $STARTX \
-y $STARTY \
-w $WIDTH \
-h $HEIGHT \
-d $duration \
~/Downloads/screencast.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment