|
||
---|---|---|
.. | ||
coins.otf | ||
coins.svg | ||
LICENSE | ||
pcrypto.py | ||
README.md | ||
setup.sh |
polybar-cryptocurrency
A polybar script much like polybar-crypto. It's a great script, but:
- I dislike messing with configuration files for small scripts
- I feel as if changing what the module displays should be quick
- Coinranking's API is much better than CMC, in my opinion (currency symbols)
- Guarda's icons are recent and look really nice, and it's fun to be able to fetch them quickly
Setup
git clone https://github.com/plinki/polybar-cryptocurrency.git
cd polybar-cryptocurrency && ./setup.sh
or copy coins.otf to ~/.fonts, and coins.svg & pcrypto.py to ~/.config/polybar
Module
Add to your polybar config:
[bar/my-left]
modules-right = crypto
[module/crypto]
type = custom/script
exec = ~/.config/polybar/pcrypto.py --base USD --coins btc eth link ltc xrp xmr
interval = 60
font-0 = "coins:style=Regular;0"
Icons
Icons are fetched from coins.svg, if you'd like to use your own icon for a specific coin, just replace the unicode with the icon
:btc
more options in pcrypto.py -h