[READ-ONLY] Mirror of https://github.com/shuuji3/bitbar-plugins. Personal plugins and settings for BitBar (menubar extension for macOS) getbitbar.com/
0

Configure Feed

Select the types of activity you want to include in your feed.

Remove cpu-load plugin.

-19
-19
cpu-load.5s.sh
··· 1 - #!/usr/bin/env bash 2 - 3 - # <bitbar.title>CPU Load</bitbar.title> 4 - # <bitbar.version>v1.0</bitbar.version> 5 - # <bitbar.author>Paul W. Rankin</bitbar.author> 6 - # <bitbar.author.github>rnkn</bitbar.author.github> 7 - # <bitbar.desc>Shows CPU load as a percentage (without using top).</bitbar.desc> 8 - # <bitbar.image>http://photos.paulwrankin.com/screenshots/cpu-load.png</bitbar.image> 9 - # <bitbar.dependencies>bash</bitbar.dependencies> 10 - 11 - # BitBar CPU Load plugin 12 - 13 - ncpu=$(sysctl -n hw.logicalcpu) 14 - total=$(ps -Ao %cpu= | paste -sd+ - | bc) 15 - usage=$(echo "scale = 2; $total / $ncpu" | bc) 16 - 17 - printf "%0.1f%%\n" "$usage" 18 - echo "---" 19 - echo "Refresh | refresh=true"