diff --git a/src/user/modules/gui/wm/hyprland/config/waybar/scripts/getPrice b/src/user/modules/gui/wm/hyprland/config/waybar/scripts/getPrice index 7b1347a..5d85c7f 100755 --- a/src/user/modules/gui/wm/hyprland/config/waybar/scripts/getPrice +++ b/src/user/modules/gui/wm/hyprland/config/waybar/scripts/getPrice @@ -1,6 +1,7 @@ #!/usr/bin/env bash -price=$(curl -s "https://api.coinbase.com/v2/prices/spot?currency=USD" | jq -r .data.amount | awk -F. '{print $1}') +response=$(curl -s "https://api.coinbase.com/v2/prices/BTC-USD/spot") +price=$(echo "$response" | jq -r .data.amount | awk -F. '{print $1}') if [ -z "$price" ]; then echo -e "\033[31mErr\033[0m"