Take screenshots and screen recordings using rofi, grim and wf-recorder. Available as bash or fish script.
When you run the script, there seems to be no output on success. But it's actually recording the video in the background. In order save the recording, you have to kill the process.
In your window manager, you could create a keyboard binding for a single command that records and stops, i.e.:
pkill wf-recorder || /path/to/rofi-wfr.sh