Created
January 26, 2016 17:35
-
-
Save bernerdschaefer/63b43a889d6adff888ea to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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