diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-01-14 04:35:02 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-01-14 04:35:02 +0900 |
| commit | 6abf9c644a34bc9cfbf2845b08c8e7487cc07b27 (patch) | |
| tree | 664093aa5cbc77e46e0eb44bd736263d402d7df7 /ar/.local/bin/statusbar/sb-price | |
| parent | 7f2dba3d51b9fb585853e7af792155f8a1f4e006 (diff) | |
modified statusbar/sb-price
Diffstat (limited to 'ar/.local/bin/statusbar/sb-price')
| -rwxr-xr-x | ar/.local/bin/statusbar/sb-price | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ar/.local/bin/statusbar/sb-price b/ar/.local/bin/statusbar/sb-price index 84d86b6..70703f8 100755 --- a/ar/.local/bin/statusbar/sb-price +++ b/ar/.local/bin/statusbar/sb-price @@ -64,4 +64,8 @@ esac notify-send "$icon Update complete" "$name price is now \$$(cat "$pricefile")" -[ -f "$pricefile" ] && printf "%s%s%0.2f" "$icon" "$symb" "$(cat "$pricefile")" +[ -f "$pricefile" ] && { + price=$(cat "$pricefile") + formatted_price=$(printf "%0.2f" "$price" | sed ':a;s/\B[0-9]\{3\}\>/,&/;ta') + printf "%s%s%s" "$icon" "$symb" "$formatted_price" +} |
