#!/bin/bash ffmpeg -y -f alsa -ac 2 -ar 128000 -ab 160k -i pulse -f x11grab -r 30 -s `xdpyinfo | grep 'dimensions:'|awk '{print $2}'` -i :0.0 -sameq -threads 0 $FILE