I've used a Linux OS as my daily driver for 15 years now. Recently, I wanted a way to record my screen on my minimal Linux system.

The obvious choice was SimpleScreenRecorder (SSR), a classic, mature C++/Qt application with over 15,000 lines of code. It's an excellent application that solves screen recording for a wide range of users. I even created a fork of SSR with some of the features I didn't need removed.

But I realized my needs were simpler. I could do the same thing with a Bash shell script in my terminal.

#!/usr/bin/env bash

set -e