#!/bin/bash file="$HOME/recording_$(date +%Y-%m-%d_%H-%M)" if [[ -n $1 ]]; then file="$1" fi ffmpeg \ -y \ -video_size 2880x1800 \ -framerate 10 \ -f x11grab \ -i :0.0 \ -f pulse \ -ac 2 \ -i default \ "$file"