This conky theme displays real-time prices of Bitcoin (BTC), Ethereum (ETH), Avalanche (AVAX), Terra (LUNA), Solana (SOL), TraderJoe (JOE) using the Coingecko-api.
This script require the follwing modules/libraries:
- Conky module; which can be installed using:
sudo apt install conky-all
- Dowload the project and extract it to your home folder.
- Navigate to the folder and run the install script in the terminal using
./install
- Go to Coingecko-api docs and open the query "GET /simple/price";
- Press "Try it out" and fill "ids" field with ids of the coins you want (you can find the ids on the specific coin page on Coingecko);
- On "vs_currencies" field put "usd" (and "btc" if you're interested on btc pairs);
- Modify other fields as you want and press "Execute";
- Copy the curl string and paste it on the template file (row 56);
- Then you'll need the image: search it online and make it white please or you'll ruin the minimal feel :(
- Copy and paste this, then modify img path, positioning, offset, voffset and jq command:
${image ~/conky-cryptoWidget/img/btc-white.png -p 20,75 -s 50x50}${voffset 120}\
${font Ubuntu Regular:size=12}${offset 8}${execi 0 echo "scale=2; $(cat ~/conky-cryptoWidget/prices.json | jq -r .bitcoin.usd)/1" | bc}\
- Reinstall the widget and enjoy :)
This code/script has been tested on ubuntu 21.10
If you have any improvement's suggestions, please contact me or contribute to the repo.