1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-03-18 18:07:45 +01:00

13 lines
301 B
Plaintext
Raw Normal View History

2019-09-07 17:42:18 +02:00
#!/bin/sh
2023-10-17 05:18:46 +02:00
icon="^b#282828^^c#dfdfdf^  ^d^ "
if [ "$1" = "amd" ]; then
2023-10-17 05:18:46 +02:00
temp=$(sensors | awk '/Tctl/ {print $2}')
elif [ "$1" = "intel" ]; then
temp=$(sensors | awk '/Package id 0/ {print $4}')
fi
2023-10-17 05:18:46 +02:00
temp=$(printf %3s $(echo ${temp##*+} | sed "s/\..*//") | tr ' ' ' ')
echo "$icon$temp°C"