Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/willHol/polybar-crypto
A polybar script that displays the price of crypto-currencies
https://github.com/willHol/polybar-crypto
Last synced: 2 months 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 (almost 3 years ago)
- Last Synced: 2024-08-01T19:54:48.753Z (5 months ago)
- Language: Python
- Size: 11.7 KB
- Stars: 56
- 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**.![screen](https://user-images.githubusercontent.com/24377188/31326832-34dd06de-ad27-11e7-908f-9e7d72398eb7.jpg)
# 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`
![screen](https://user-images.githubusercontent.com/24377188/31331319-4ef14406-ad3e-11e7-9242-12440ef96774.jpg)
`display = percentage`
![screen](https://user-images.githubusercontent.com/24377188/31331342-65e40428-ad3e-11e7-88e0-3b87921805c7.jpg)
`display = both`
![screen](https://user-images.githubusercontent.com/24377188/31331368-80faac76-ad3e-11e7-9977-e86b1eebe401.jpg)