Skip to content

Commit d819063

Browse files
committed
fix cpu %, add lolcat spread in config
1 parent 1980502 commit d819063

9 files changed

Lines changed: 8 additions & 7 deletions

File tree

app/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@ clean {
133133
task downloadBootstraps(){
134134
doLast {
135135
def version = 20
136-
downloadBootstrap("aarch64", "e7aa7b6b89b63a3179e6f10a40c6404cf938a2c7d5319d5508409ca6ab02fbe4", version)
137-
downloadBootstrap("arm", "f496ee609a531cffaabeb1fba6bade24772a49e8788132f93ec86e744a653a09", version)
138-
downloadBootstrap("i686", "582450e9b32ccfa40f155866bba4fe6d983c94af1b942a48318ce784c4ed29b2", version)
139-
downloadBootstrap("x86_64", "dce9ebce012388c0b56f494abeaec57e3feb41e81ff39f38b47436f72b5063c0", version)
136+
downloadBootstrap("aarch64", "5e96bb4dcb51556528940ddf970f91fac205a3f50bbbe1e7272943b8edc14772", version)
137+
downloadBootstrap("arm", "a3bd45af0d77921fcf4a05a0ded9988d22c3ff2bddcc68b5a3ae4505e293ece", version)
138+
downloadBootstrap("i686", "9e634b59380a712c654f8b9d6ec8f50e94a2f49d01b729e96e4fb3adaa68f15", version)
139+
downloadBootstrap("x86_64", "2620ae3dd9d86bfddf897251d90800bf4e65125a343808e708ddb4f7c0de02ac", version)
140140
}
141141
}
142142

bootstrap/bootstrap-aarch64.zip

35 Bytes
Binary file not shown.

bootstrap/bootstrap-arm.zip

35 Bytes
Binary file not shown.

bootstrap/bootstrap-i686.zip

35 Bytes
Binary file not shown.

bootstrap/bootstrap-x86_64.zip

35 Bytes
Binary file not shown.

bootstrap/changes.zip

35 Bytes
Binary file not shown.

bootstrap/changes/tel/.tel/config.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
STATUS_CENTER=true #center status output [true/false]
66
STATUS_SPACING_CHAR=" " #char to create spacing if center is enabled, try "="
77
STATUS_RELOAD=1m #time to sleep before reloading status
8-
STATUS_COLOR=true #enable status color via lolcat [true/false]
8+
STATUS_COLOR=true #enable status color via lolcat [true/false]
9+
STATUS_COLOR_SPREAD="1.0" #lolcat color spread value

bootstrap/changes/tel/.tel/status.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ do
2121
fi
2222
if [ $STATUS_COLOR = true ];
2323
then
24-
echo "${output}" | lolcat
24+
echo "${output}" | lolcat -p "${STATUS_COLOR_SPREAD}"
2525
else
2626
echo "${output}"
2727
fi
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/data/data/com.termux/files/usr/bin/bash
22
pretext=" CPU: " #text before the cpu string
33
posttext="" #text after the cpu string
4-
cpu=$(grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} END {print usage "%"}')
4+
cpu=$(grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} END {print usage "%%"}')
55

66
printf "%s %s %s" "${pretext}" "${cpu}" "${posttext}"

0 commit comments

Comments
 (0)