updated install script, new monitor config and added amd (ryzen) support to temp.sh

This commit is contained in:
2020-02-15 12:50:20 +01:00
parent 7d81df3476
commit 0936c92f4d
7 changed files with 42 additions and 34 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash
temp=$(sensors | # execute sensors
intelTemp=$(sensors | # execute sensors
grep -w "Core 0:" | # grep for the first core
sed 's/([^)]*)//g' | # filter
tr -s " " | # remove whitespace
@@ -8,5 +8,13 @@ sed -e 's/Core 0\(.*\):/\1/' | # get value between Core 0 and :
cut -c 3- | rev | cut -c 7- | rev #remove clutter
)
amdTemp=$(sensors | grep -w "Tdie:" | sed 's/([^)]*)//g' | tr -s " " | cut -c 8- | rev | cut -c 6- | rev)
# echo out the result
echo $temp°C
if [ -z "$intelTemp" ]
then
echo $amdTemp
else
echo $intelTemp°C
fi