A polybar script that displays the price of various crypto-currencies.
git clone https://github.com/willHol/polybar-crypto.git &&
cd polybar-crypto &&
cp ./{crypto-config,crypto.py} ~/.config/polybar
Then in ~/.config/polybar/config
:
[bar/top]
...
modules-right = crypto
...
[module/crypto]
type = custom/script
interval = 300
exec = /home/<user>/.config/polybar/crypto.py
The cryptocoins icon font is used in the screenshots, though you are free to use any other font.
If using the cryptocoins icon font, ensure that the following line is present in your ~/.config/polybar/config
:
[bar/top]
...
font-0 = cryptocoins:style=Regular;0
~/.config/polybar/crypto-config
[general]
base_currency = NZD
display = percentage
[bitcoin]
icon =
[ethereum]
icon =
[litecoin]
icon =
[ardor]
icon =
[NEO]
icon =
display = price
display = percentage
display = both