mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-22 02:22:53 +00:00
Tweaked temperature modules
This commit is contained in:
parent
0435b402c5
commit
23643fabad
2 changed files with 1 additions and 2 deletions
1
dwmbar
1
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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue