#!/usr/bin/env bash #The icon that would change color icon=" " if pgrep -x "compton" > /dev/null then echo "%{F#EFF0F1}$icon" else echo "%{F#484852}$icon" fi