hi,
After I was excited about my new MacBook Pro having a touch bar, I found out it wasn't really useful in real life. Until I saw someone post a picture of their cryptocurrencies prices in the touch bar. I was immediately sold.
There are many guides how to show crypto, but they all didn't cut it for me, either it was one where you couldn't change anything easily or it was too hard to use. I'm not a coder, nor do I have any programming knowledge whatsoever, so it was quite hard to make something right by myself. But with help of internet and friends I managed. Here is how:
The most important part is the app Bettertouchtool, with this you can change your touch bar. The app is free on trial the first 60 days, after that's it's a one-time purchase of $4. Download it here and install.
Open the app's preferences and head over to Touch Bar. Click on + widget
Click on select widget and choose Run Apple Script and Show Return Value
Click on Advanced Configuration , fill in the name of the currency you want to add.
Remove the text: return do shell script "date" example: execute a shell script and use the result
And fill in this script found here: https://gist.github.com/anonymous/4e92b17f639fac6b067274e836bff318
(Note I'm not good at writing scripts, it's probably way too much lines, I could have removed many unnecessary stuff. But it works perfect.)The only thing you have to change is the coin, in the first line you see the coinmarketcap link, in my script this is NULS. You have to change https://api.coinmarketcap.com/v1/ticker/nuls/ to for example https://api.coinmarketcap.com/v1/ticker/btc/. If you're unsure what the link name of your coin is look it up on Coinmarketcap.
Choose how often you would like to refresh the price. I have it set to 60 seconds.
To make it look good you can add a background colour and the icon of your coin. This is optional, but looks cool.
Save it and repeat the process to add the other coins.
Now your touch bar probably looks somewhat like this:
You can scroll the coins, and have access to your Mac's touch bar settings like brightness. If you would like it to be like my first photo, go to General Touch Bar Settings and toggle off Show macOS Control Strip.
The bar will now be fullscreen and you can toggle to the other macOS controls by pressing the BetterTouchTool icon.
That's it.
Let me know if it worked for you or thoughts in general in the comment section.
Also, I'm new to writing on Steemit, been a long-time lurker ;) I'm planning to write more articles about cryptocurrency.