#!/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