dotfiles/platforms/mac/sketchybar/plugins/cpu.sh

3 lines
138 B
Bash
Executable file

#!/usr/bin/env bash
sketchybar --set "$NAME" icon="" label="$(ps -A -o %cpu | awk '{s+=$1} END {s /= 8} END {printf "%.1f%%\n", s}')"