SketchyBar/plugins/caffeinate.sh

8 lines
144 B
Bash
Raw Normal View History

#!/usr/bin/env bash
if [ "$(pgrep -x "caffeinate")" = "" ]; then
sketchybar -m set $NAME icon ﯈
else
sketchybar -m set $NAME icon 
fi