Created
December 17, 2022 05:38
-
-
Save luisadha/3e7a90169feb3e54d176013d75075394 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local CHECK_GPU=$(su -c dumpsys SurfaceFlinger | awk '/GLES: / { print $3 $4}' ) | |
CHECK_GPU=${CHECK_GPU-'FAIL'} | |
local CHECK_CPU=$(if [ "$(getprop|grep ro.product.board)" != "$(cat /proc/cpuinfo|grep Hardware)" ]; then echo $(getprop ro.product.board); else echo $(cat /proc/cpuinfo|grep Hardware); fi) | |
local CHECK_MEM=$(echo "$(free -m | xargs | awk '{print "" $17 "/" $8 " MB"}') ") | |
echo "" | |
echo -e "${G} %=,_ _,=%${D}" | |
echo -e "${G} ,\*?&&&&&&&&&&?*/, \tTERM: $TERM" | |
echo -e "${G} &&&&&${R}*${G}&&&&&&&${R}*${G}&&&& ${D}\tSHELL: $SHELL" | |
echo -e "${G} &&&&&&&&&&&&&&&&&&&&${D} \tCPU: $CHECK_CPU " | |
echo -e "${G} &&&&&&&&&&&&&&&&&&&&${D} \tGPU: $CHECK_GPU " | |
echo -e "${G} &&&&&&&&&&&&&&&&&&&&${D} \tMEM: $CHECK_MEM " | |
echo "" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment