Skip to content

Instantly share code, notes, and snippets.

@rensjaspers
Last active July 14, 2017 08:13
Show Gist options
  • Save rensjaspers/50ffbed2ad56638d841005721a3215ef to your computer and use it in GitHub Desktop.
Save rensjaspers/50ffbed2ad56638d841005721a3215ef to your computer and use it in GitHub Desktop.
Install create gif of selection on screen (Ubuntu)
# get dependencies for this script
sudo apt install byzanz git dh-autoreconf libx11-dev
# get xrectsel to make selection on screen
git clone https://github.com/lolilolicon/xrectsel
cd xrectsel
./bootstrap # required if ./configure is not present
./configure --prefix /usr
make
sudo make DESTDIR="$directory" install
# get recordgif script
cd ~
mkdir bin
cd bin
wget https://gist.githubusercontent.com/rensjaspers/2efe9358817c9b5abc0c0c063023f407/raw/d27ed5927311677decc37f70890ec4e060ce8ca0/recordgif
chmod +x recordgif
echo 'The recordgif script is in ~/bin/'
# reload profile
. ~/.profile
# usage:
# to record for 20 seconds, typ in terminal: recordgif 20
# you are prompted to make a selection
# the recording starts after a countdown of 3 seconds
# the recording is saved in /tmp/recorded.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment