aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArchie Hilton (thytom) <archie.hilton1@gmail.com>2019-11-06 14:59:52 +0000
committerArchie Hilton (thytom) <archie.hilton1@gmail.com>2019-11-06 14:59:52 +0000
commit23643fabad3b78bb0ab15ae1cb96f49efbed8884 (patch)
tree17caee182a2a0d5e493b2b853334f2cf8f62b183
parent0435b402c541ba85097cd2f32dc11b91c27985da (diff)
Tweaked temperature modules
-rwxr-xr-xdwmbar1
-rwxr-xr-xmodules/temperature2
2 files changed, 1 insertions, 2 deletions
diff --git a/dwmbar b/dwmbar
index 67e97f7..44e0ca8 100755
--- a/dwmbar
+++ b/dwmbar
@@ -95,7 +95,6 @@ check_files
while :; do
date=$(date +'%S')
if [ $(( 10#$date % 5 )) -eq 0 ]; then
- echo "check"
wget --spider -q www.google.com
if [[ $? -eq 0 ]]; then
diff --git a/modules/temperature b/modules/temperature
index 39fe39d..62ff63a 100755
--- a/modules/temperature
+++ b/modules/temperature
@@ -8,7 +8,7 @@ get_temperature()
# CPU_T=$(cat /sys/devices/platform/coretemp.0/hwmon/hwmon?/temp2_input)
# CPU_TEMP=$(expr $CPU_T / 1000)
- CPU_TEMP="$(sensors | grep temp1 | awk '{gsub("+", " "); print $2}')"
+ CPU_TEMP="$(sensors | grep temp1 | awk 'NR==1{gsub("+", " "); print $2}')"
# elif [ "$CPU_TEMP" -le 10 ]; then
# echo "  $CPU_TEMP"