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 | 82fb1384548ddb5a19ece86a343937b6827162d2 (patch) | |
| tree | 9cba884b63fe47c3144dac02b3d2935d7c74f0b3 /ar/.local/bin/statusbar/sb-price | |
| parent | 9f8d1ace86387f4652495cb5b10850a781bfec04 (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" +} |
