17 lines
263 B
Bash
Executable File
17 lines
263 B
Bash
Executable File
#!/bin/env bash
|
|
|
|
# Temp=$(sensors | awk '/^Tctl:/ {print $2 }')
|
|
|
|
. sb-theme
|
|
|
|
while read -a Line; do
|
|
if [ "${Line[0]}" == 'Tctl:' ]; then
|
|
Temp=${Line[1]}
|
|
|
|
break
|
|
fi
|
|
done <<< "$(sensors)"
|
|
|
|
cpuVal=${Temp:1:-4}
|
|
display "$Temp" $1 "$cpuVal"
|