clean up scripts
This commit is contained in:
8
.config/polybar/scripts/ticker-crypto.sh
Normal file
8
.config/polybar/scripts/ticker-crypto.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
API="https://api.kraken.com/0/public/Ticker"
|
||||
|
||||
quote=$(curl -sf $API?pair=BTCEUR | jq -r ".result.XXBTZEUR.c[0]")
|
||||
quote=$(LANG=C printf "%.2f" "$quote")
|
||||
|
||||
echo "#1 $quote €"
|
||||
Reference in New Issue
Block a user