Skip to content

Instantly share code, notes, and snippets.

@Nymphium
Created November 13, 2014 00:48
Show Gist options
  • Save Nymphium/5ff107c100a06dc99923 to your computer and use it in GitHub Desktop.
Save Nymphium/5ff107c100a06dc99923 to your computer and use it in GitHub Desktop.
# run code
top -bn1 -o %CPU | awk 'NR==11{printf "#[fg=colour226]Max:%s(%2.1f%)>", $11, $9}'
# commandline stdout
#[fg=colour226]Max:Xorg.bin(16.0%)>%
# tmux status line
Max:(0.0%)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment