.files/dotfiles/config/polybar/cpuload.sh

10 lines
158 B
Bash
Raw Normal View History

2017-12-25 16:35:45 +00:00
#!/usr/bin/env bash
#
# {{@@ header() @@}}
#
2017-12-25 16:35:45 +00:00
load=$(uptime | grep -ohe 'load average[s:][: ].*' | sed 's/,//g' | awk '{print $3" "$4" "$5}')
echo -n $load