statusbar-scripts/sb-cpu-temp
2023-08-23 19:45:38 +02:00

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"