screencast (359B)
1 #!/usr/bin/zsh 2 test $1 && NAME=$1 || NAME="screencast" 3 RESOLUTION=$(xrandr | grep "*" | awk '{print $1}' | head -n1) 4 echo "recording to ${HOME}/lib/videos/recordings/screencasts/$(date +%Y%m%d)-${NAME}.webm" 5 ffmpeg -f x11grab -s ${RESOLUTION} -an -r 16 -loglevel quiet -i :0.0 -b:v 5M -y ${HOME}/lib/videos/recordings/screencasts/$(date +%Y%m%d)-${NAME}.webm