Skip to content

Instantly share code, notes, and snippets.

@bl4ckb0ne
Created April 21, 2015 00:16
Show Gist options
  • Save bl4ckb0ne/1a57d271e83bbe3c165a to your computer and use it in GitHub Desktop.
Save bl4ckb0ne/1a57d271e83bbe3c165a to your computer and use it in GitHub Desktop.
#!/bin/bash
source $(dirname $0)/config
USED=$(ps -eo pcpu | awk 'BEGIN {sum=0.0f} {sum+=$1} END {print sum}')
output="%{F$COLOR_ICON} %{F-}$USED"
echo $output $DIV;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment