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

9 lines
171 B
Bash
Executable file

#!/usr/bin/env bash
#
# {{@@ env['dotdrop_warning'] @@}}
#
load=$(uptime | grep -ohe 'load average[s:][: ].*' | sed 's/,//g' | awk '{print $3" "$4" "$5}')
echo -n $load