1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-03-27 21:47:46 +01:00

statusbar: adjusted cpu script for intel

This commit is contained in:
TiynGER 2023-10-17 05:25:40 +02:00
parent 0c6942bb7d
commit 41d182f481

View File

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