diff options
| author | bd <bdunahu@operationnull.com> | 2025-12-13 23:43:10 -0500 |
|---|---|---|
| committer | bdunahu <bdunahu@operationnull.com> | 2026-01-03 21:46:06 -0700 |
| commit | 288ccb3984c7cb46b67d0f6bf7fb6d53c5d7a2d3 (patch) | |
| tree | 47091f5aeede90e1364546e8122cd55e6d7f2971 /guix/kolwynia/home/bdunahu/files/.local/bin/t1-string | |
| parent | df14036eb22ff9326c2806eb3f8cafc0d3042efa (diff) | |
guix: full refactor of configuration structure
Diffstat (limited to 'guix/kolwynia/home/bdunahu/files/.local/bin/t1-string')
| -rwxr-xr-x | guix/kolwynia/home/bdunahu/files/.local/bin/t1-string | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/guix/kolwynia/home/bdunahu/files/.local/bin/t1-string b/guix/kolwynia/home/bdunahu/files/.local/bin/t1-string new file mode 100755 index 0000000..ffdd61a --- /dev/null +++ b/guix/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 |
