Two modules that display rates of fiat currencies and cryptocurrencies
- Clone the repository somewhere
- Move (or create symlink from dotfiles) the scripts
- Make them executable:
sudo chmod u+x ~/.config/polybar/scripts/crypto.py sudo chmod u+x ~/.config/polybar/scripts/fiat.py
~/.config/polybar/config.ini create and use the modules:
[bar/monLeft] ... modules-right = crypto ... [bar/monRight] ... modules-right = fiat ... [module/crypto] type = custom/script exec = ~/.config/polybar/scripts/crypto.py interval = 300 label-foreground = #FAFAD2 [module/fiat] type = custom/script exec = ~/.config/polybar/scripts/fiat.py interval = 300 label-foreground = #9DE5DD
You can see an example of the configuration here.
In the screenshots this font was used for cryptocurrencies. For fiat currencies was used Material Design Icons.
If you don’t know how to use custom icons in polybar – this video will help you)
Installing these fonts in the Archlinux:
yay -S ttf-material-design-icons-git cryptocoins-git
If using the cryptocoins icon font or Material Disign Icons, ensure that the following lines is present in your
[bar/base] ... font-0 = cryptocoins:size=11;2 ... font-2 = Material Design Icons:size=12;2
(Don’t forget that fonts can overlap each other, so it is important to place cryptocoins above)