From 1f273528486b977e25e9b87de234ffd660f5a76e Mon Sep 17 00:00:00 2001 From: Vlad Doster Date: Sat, 11 Jan 2020 12:52:45 -0500 Subject: [PATCH] feature(temp script): added script to use awk and avg core temps --- .local/bin/polybar_scripts/sys_temp | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 .local/bin/polybar_scripts/sys_temp diff --git a/.local/bin/polybar_scripts/sys_temp b/.local/bin/polybar_scripts/sys_temp new file mode 100755 index 00000000..a2c55de3 --- /dev/null +++ b/.local/bin/polybar_scripts/sys_temp @@ -0,0 +1,4 @@ +#!/usr/bin/env sh + +sensors -f | awk '/Core / { gsub(/+|°|C/,""); {sum+=$3; n++} print sum/n; }' | tail -1 +