https://github.com/willHol/polybar-crypto
A polybar script that displays the price of crypto-currencies
https://github.com/willHol/polybar-crypto
Last synced: 7 days ago
JSON representation
A polybar script that displays the price of crypto-currencies
- Host: GitHub
- URL: https://github.com/willHol/polybar-crypto
- Owner: willHol
- Created: 2017-10-04T09:14:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-02-08T21:46:11.000Z (about 3 years ago)
- Last Synced: 2024-11-07T16:43:03.798Z (5 months ago)
- Language: Python
- Size: 11.7 KB
- Stars: 54
- Watchers: 1
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome - willHol/polybar-crypto - A polybar script that displays the price of crypto-currencies (Python)
- Awesome-Polybar - Crypto
README
# polybar-crypto
A *polybar script* that displays the price of various **crypto-currencies**.
# Setup
```
git clone https://github.com/willHol/polybar-crypto.git &&
cd polybar-crypto &&
mkdir -p ~/.config/polybar &&
cp ./{crypto-config,crypto.py} ~/.config/polybar &&
sudo chmod u+x ~/.config/polybar/crypto.py
```Then in `~/.config/polybar/config`:
```
[bar/top]...
modules-right = crypto
...
[module/crypto]
type = custom/script
interval = 300
exec = /home//.config/polybar/crypto.py```
## Dependencies
The [cryptocoins](https://github.com/allienworks/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
```# Example Configuration
`~/.config/polybar/crypto-config`
```
[general]
base_currency = NZD
display = percentage[bitcoin]
icon = [ethereum]
icon = [litecoin]
icon = [ardor]
icon = [NEO]
icon =
```## Display Modes
`display = price`

`display = percentage`

`display = both`
