statusbar: adjusted cpu script for intel

master
TiynGER 1 year ago
parent 0c6942bb7d
commit 41d182f481

@ -5,7 +5,7 @@ icon="^b#282828^^c#dfdfdf^  ^d^ "
if [ "$1" = "amd" ]; then if [ "$1" = "amd" ]; then
temp=$(sensors | awk '/Tctl/ {print $2}') temp=$(sensors | awk '/Tctl/ {print $2}')
elif [ "$1" = "intel" ]; then elif [ "$1" = "intel" ]; then
temp=$(sensors | awk '/Tctl/ {print $3}') temp=$(sensors | awk '/Package id 0/ {print $4}')
fi fi
temp=$(printf %3s $(echo ${temp##*+} | sed "s/\..*//") | tr ' ' ' ') temp=$(printf %3s $(echo ${temp##*+} | sed "s/\..*//") | tr ' ' ' ')

Loading…
Cancel
Save