#!/bin/bash if [[ -z "$1" ]]; then file="$(date +%Y-%M-%d_%H:%m)" else file="$1" fi wf-recorder -g "$(slurp)" --file="${file}.mp4"