#!/bin/sh sleep 0.5 PID=$(pidof gpu-screen-recorder) if [ -n "$PID" ]; then echo " REC" #elif [ -z "$PID" ]; then # echo " - " fi