You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/sh
|
|
|
|
icon="^b#282828^^c#dfdfdf^ ^d^ "
|
|
|
|
if [ "$1" = "amd" ]; then
|
|
temp=$(sensors | awk '/Tctl/ {print $2}')
|
|
elif [ "$1" = "intel" ]; then
|
|
temp=$(sensors | awk '/Package id 0/ {print $4}')
|
|
fi
|
|
|
|
temp=$(printf %3s $(echo ${temp##*+} | sed "s/\..*//") | tr ' ' ' ')
|
|
echo "$icon$temp°C"
|