mirror of
https://github.com/pgrondek/config.git
synced 2024-11-25 21:25:39 +00:00
[i3blocks] Fix CPU
This commit is contained in:
parent
055249e0de
commit
1fdbfbd915
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
utilisation=$(mpstat 1 1 --dec=0 | tail -n 1 | awk '{print $3}' )%
|
utilisation=$(mpstat 1 1 | tail -n 1 | awk '{print $3}' )%
|
||||||
temperature_path=/sys/devices/platform/coretemp.0/hwmon/hwmon*/temp1_input
|
temperature_path=/sys/devices/platform/coretemp.0/hwmon/hwmon*/temp1_input
|
||||||
load="↑ $(awk '{print $1}' /proc/loadavg)"
|
load="↑ $(awk '{print $1}' /proc/loadavg)"
|
||||||
temperature=$(($(cat $temperature_path)/1000))°C
|
temperature=$(($(cat $temperature_path)/1000))°C
|
||||||
|
Loading…
Reference in New Issue
Block a user