Flexing CUB and LEO prices on my MacBook Pro TouchBar

avatar
(Edited)

image.png

Over a year ago, I wrote about the Mac Touch Bar script to track the STEEM/SBD price. For obvious reasons, we don't care much for this now but I resurrected my little BetterTouchTool app, with jq (for json parsing) and the @coingecko API for CUB and LEO prices.

It's pretty simple to setup:

image.png

image.png

image.png

#! /bin/bash

output=$(curl -s "https://api.coingecko.com/api/v3/simple/price?ids=CUB-FINANCE&vs_currencies=USD");
cub=$(echo $output | /usr/local/bin/jq ".\"cub-finance\".usd");
cub=$(printf "%0.3f" $cub);
echo "\$$cub"

Rinse and repeat for LEO. It's pretty sexy isn't it?

image.png

Posted Using LeoFinance Beta



0
0
0.000
7 comments
avatar

Very but how about in mobile? Filipinos always use mobile because it's cheaper I guess.

That's a nice tool by the way.

0
0
0.000
avatar

awesome, that looks cool!
Is that region on the keyboard also sensitive to touch events, can you / do you bind anything there?

0
0
0.000
avatar

First time I find this touch at really useful 😅

Great work, that looks great ! I can't stand apple but thanks to that I would like this macbook :')

Posted Using LeoFinance Beta

0
0
0.000