aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"