diff options
| author | bdunahu <bdunahu@operationnull.com> | 2026-01-04 13:13:39 -0700 |
|---|---|---|
| committer | bdunahu <bdunahu@operationnull.com> | 2026-01-04 13:13:39 -0700 |
| commit | c2b706ff2f3aa42d58a03febad1d1b8f8d5a1142 (patch) | |
| tree | d6786f531f02717472abdc992cc6c6ef81e660b3 /kolwynia/home/bdunahu/files/.local/bin/t1-string | |
| parent | c4ca05231236c7e9bdf5304275eadde954acf588 (diff) | |
remove unnecessary nested guix dir
Diffstat (limited to 'kolwynia/home/bdunahu/files/.local/bin/t1-string')
| -rwxr-xr-x | kolwynia/home/bdunahu/files/.local/bin/t1-string | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/kolwynia/home/bdunahu/files/.local/bin/t1-string b/kolwynia/home/bdunahu/files/.local/bin/t1-string new file mode 100755 index 0000000..ffdd61a --- /dev/null +++ b/kolwynia/home/bdunahu/files/.local/bin/t1-string @@ -0,0 +1,17 @@ +#!/bin/sh + +loop=$(cat /tmp/t1 | jq .stat | tr -d '"') +[ -n "$loop" ] && echo -n "${loop} " +bg=$(cat /tmp/t1 | jq .bg) +[ -n "$bg" ] && echo -n "${bg}B " +iob=$(cat /tmp/t1 | jq .iob) +[ -n "$iob" ] && echo -n " ${iob}U" +rbat=$(cat /tmp/t1 | jq .rbat) +[ -n "$rbat" ] && [ "$rbat" -lt 25 ] && echo -n " RB" +res=$(echo "$(cat /tmp/t1 | jq .res) * 100 / 1" | bc) +[ -n "$res" ] && [ "$res" -lt 2500 ] && echo -n " PR" +pbat=$(echo "$(cat /tmp/t1 | jq .pbat) * 100 / 1" | bc) +[ -n "$pbat" ] && [ "$pbat" -lt 136 ] && echo -n " PB" +cage=$(cat /tmp/t1 | jq .cage) +[ -n "$cage" ] && [ 14 -lt "$cage" ] && echo -n " CA" +echo -n |
