Using this as a BetterTouchTool script widget:
- launch path:
/bin/bash - parameters:
-c - script: paste cpupercent.sh contents
Using this as a BetterTouchTool script widget:
/bin/bash-c| printf '%0.0f%% | %0.0f%% | %0.0f%%' $(echo "scale=4;($(uptime | awk '{ print $10 }') / $(sysctl -n hw.ncpu)) * 100" | bc) $(echo "scale=4;($(uptime | awk '{ print $11 }') / $(sysctl -n hw.ncpu)) * 100" | bc) $(echo "scale=4;($(uptime | awk '{ print $12 }') / $(sysctl -n hw.ncpu)) * 100" | bc) |