userspace-installation-maid/.local/bin/update-monero-price

13 lines
267 B
Plaintext
Raw Normal View History

2024-08-02 04:22:49 -04:00
#!/bin/sh
while :
do
current="$(curl https://api.nanopool.org/v1/xmr/prices | jq | grep usd | cut -d ':' -f 2 | cut -d ',' -f 1)"
if [ -n "$current" ]
then
echo " xmr:$current " > /home/naiji/.local/share/i3status/now-monero
fi
sleep 3600
done