2019-05-27 20:29:10 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2019-05-28 12:00:55 +00:00
|
|
|
utilisation=$(mpstat 1 1 | tail -n 1 | awk '{print $3}' )%
|
2019-05-27 20:29:10 +00:00
|
|
|
temperature_path=/sys/devices/platform/coretemp.0/hwmon/hwmon*/temp1_input
|
|
|
|
load="↑ $(awk '{print $1}' /proc/loadavg)"
|
|
|
|
temperature=$(($(cat $temperature_path)/1000))°C
|
|
|
|
|
|
|
|
echo $utilisation $load $temperature
|