1 2 3 4 5 6 7
#!/usr/bin/env bash if pgrep gpu-screen-reco >/dev/null; then echo '{"text": "Recording ", "tooltip": "Stop recording", "class": "active"}' else echo '{"text": ""}' fi