summaryrefslogtreecommitdiff
path: root/typr.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-12-27 17:56:10 +0000
committerdavidovski <david@davidovski.xyz>2023-12-27 17:58:56 +0000
commit9ff1c1dba2657557d1d6f5dbf939eb45257a14d4 (patch)
tree7158a975bb91b2fcb196751b2e7c46a65e931abf /typr.sh
parent997d97a847c5f56bef56e7b2ee6e9be32599a304 (diff)
show wpm after finished
Diffstat (limited to 'typr.sh')
-rwxr-xr-xtypr.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/typr.sh b/typr.sh
index 24bcf86..75003be 100755
--- a/typr.sh
+++ b/typr.sh
@@ -104,7 +104,13 @@ typr_show_results () {
wpm="$((time_ns*words/60000000000))"
acc="100%"
- printf "[%s;${areax}H%s" "${areay}" "wpm" "$((areay+1))" "$wpm" "$((areay+2))" "acc" "$((areay+3))"
+ printf "[%s;${areax}H%s" \
+ "${areay}" "wpm" \
+ "$((areay+1))" "$wpm" \
+ "$((areay+2))" "acc" \
+ "$((areay+3))" "$acc" \
+ "$((areay+4))" "time" \
+ "$((areay+5))" "$(typr_get_time)"
}
typr_generate_text () {