Skip to content

A polybar script that displays the price of crypto-currencies

Notifications You must be signed in to change notification settings

stuianna/polybar-crypto

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

polybar-crypto

A polybar script that displays the price of various crypto-currencies.

A fork from willHol/polybar-crypto with the following changes:

  • Returns an empty string if API request fails, removing output if no internet connection is available.
  • Remove cryptocoins icon font and uses the coin ticker label instead.
  • Add an additional mode which only queries a single coin. Each time the program is run a new coin from the list is chosen.

screen

Setup

git clone https://github.com/stuianna/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

Additionally, you may need to change this line in crypto.py to match the correct location.

#Change this to the full path of your crypto-config file if necessary
configFile = '/home/<user>/.config/polybar/crypto-config'

Example Configuration

~/.config/polybar/crypto-config

[general]
base_currency = AUD
display = percentage
mode = cyclic
ticker = bitcoin

[bitcoin]
icon = BTC

[ethereum]
icon = ETH

Display Modes

display = price

screen

display = percentage

screen

display = both

screen

About

A polybar script that displays the price of crypto-currencies

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%