Tweaked temperature modules

This commit is contained in:
Archie Hilton (thytom) 2019-11-06 14:59:52 +00:00
parent 0435b402c5
commit 23643fabad
2 changed files with 1 additions and 2 deletions

1
dwmbar
View file

@ -95,7 +95,6 @@ check_files
while :; do while :; do
date=$(date +'%S') date=$(date +'%S')
if [ $(( 10#$date % 5 )) -eq 0 ]; then if [ $(( 10#$date % 5 )) -eq 0 ]; then
echo "check"
wget --spider -q www.google.com wget --spider -q www.google.com
if [[ $? -eq 0 ]]; then if [[ $? -eq 0 ]]; then

View file

@ -8,7 +8,7 @@ get_temperature()
# CPU_T=$(cat /sys/devices/platform/coretemp.0/hwmon/hwmon?/temp2_input) # CPU_T=$(cat /sys/devices/platform/coretemp.0/hwmon/hwmon?/temp2_input)
# CPU_TEMP=$(expr $CPU_T / 1000) # 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 # elif [ "$CPU_TEMP" -le 10 ]; then
# echo "  $CPU_TEMP" # echo "  $CPU_TEMP"