1#!/bin/bash 2if [ $# == 1 ]; then 3 wf-recorder -a -c libx264rgb -g "$1" -f recording.mp4 4else 5 wf-recorder -a -c libx264rgb -g "$(slurp)" -f recording.mp4 6fi