How to show Ethereum Gas Prices on the MacBook Pro Touch Bar

Kevin Phua
2 min readJan 28, 2021

GAS. Love it or hate it, it is an inseparable part of Ethereum.

With all the interest in DeFi in 2020, gas prices have become expensive, even skyrocketing to crazy levels during the UNI token airdrop. Gone are the days of sub 10 gwei gas and penny transactions.

So being able to keep track of gas prices has become a necessity to save transaction costs.

What better way than using the Touch Bar on your MacBook Pro to show the latest gas prices?

Steps

  1. Download and install Better Touch Tool. The free trial lasts for 45 days, but the Standard License is only $8.50, which is a great deal for such a useful tool for the Mac
  2. Get the gasbar.py Python script from the gasbar project
  3. Configure Python 3 on your Mac Terminal
    pip3 install requests
    If you don’t have Python 3 installed, try the steps outlined here
  4. Login to Etherscan and get an Etherscan API token
  5. Add the script to the Better Touch Tool
  • Type Shell Script / Task
  • Launch path: /usr/bin/python3
  • Parameters: -c
  • Environment variables: ETHERSCAN_TOKEN= and your Etherscan API token (no quotation marks needed)
  • Script: copy-paste the contents of gasbar.py

6. To change the background color of the gas widget, select Common > Background Color > Button Background Color and change to desired color

And you’re done!

Thanks to the gasbar project on Github, and enjoy!

If you liked this article and found it useful, a small donation to my ETH address would be much appreciated :)

--

--

Kevin Phua

iOS Developer. 3 x 70.3 Ironman. Crypto investor. Sat Chit Anada.