btc-whoa (306B)
1 #!/usr/bin/env bash 2 3 while true 4 do 5 if bcli waitfornewblock; then 6 block=$(bcli getblockcount) 7 notify-send -u critical "$(btc-halvening)" 8 if [ "$block" -eq 630000 ]; then 9 notify-send -u critical 'Happy Halvening!' 10 play /home/jb55/var/audio/whoa.ogg 11 fi 12 fi 13 done