1 2 3 4 5
#!/bin/sh pidof -q gpu-screen-recorder && exit 0 video="$HOME/Videos/$(date +"Video_%Y-%m-%d_%H-%M-%S.mp4")" gpu-screen-recorder -w screen -f 60 -a default_output -o "$video"