helm/home/darwin/sketchybar/plugins/cpu.sh

4 lines
138 B
Bash
Raw Normal View History

2024-03-18 12:02:21 -07:00
#!/usr/bin/env bash
sketchybar --set "$NAME" icon="" label="$(ps -A -o %cpu | awk '{s+=$1} END {s /= 8} END {printf "%.1f%%\n", s}')"