update scripts

This commit is contained in:
2023-03-02 14:37:56 +05:00
parent dd5cfd84fa
commit db2199c05b
6 changed files with 62 additions and 35 deletions

View File

@ -0,0 +1,24 @@
#!/bin/bash
COLOR1="#AE8BF9"
COLOR2="#773DF5"
cputemp=$(($(cat /sys/class/thermal/thermal_zone0/temp) / 1000))
if [ $cputemp -ge 90 ]
then
tempicon=""
elif [ $cputemp -ge 75 ]
then
tempicon=""
elif [ $cputemp -ge 60 ]
then
tempicon=""
elif [ $cputemp -ge 45 ]
then
tempicon=""
else
tempicon=""
fi
echo "^b$COLOR1^^c$COLOR2^ $tempicon ^c$COLOR1^^b$COLOR2^ $cputemp ^d^"