All Projects β†’ Optixal β†’ i3blocks-crypto

Optixal / i3blocks-crypto

Licence: other
πŸ’΅ View your favorite coins' ticker prices with i3blocks.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to i3blocks-crypto

dotfiles
πŸ’» 🍚 πŸ”³ πŸ”² My riced-up Kali dotfiles – off-white | dark leet | chrome lambo
Stars: ✭ 55 (+83.33%)
Mutual labels:  rice, i3, i3wm, i3blocks, ricing
no-mans-sky-rice-i3wm
i3WM rice themed using No Man's Sky's colors
Stars: ✭ 34 (+13.33%)
Mutual labels:  rice, i3, i3wm, i3blocks
i3blocks-modules
Custom modules for i3blocks status bar
Stars: ✭ 36 (+20%)
Mutual labels:  i3bar, i3, i3wm, i3blocks
Direwolf Arch Rice
🐺🍚 A guide to replicating my riced Arch Linux set-up.
Stars: ✭ 501 (+1570%)
Mutual labels:  rice, i3, i3wm
dotfiles
collection (and a backup) of my config files
Stars: ✭ 49 (+63.33%)
Mutual labels:  rice, i3, i3wm
I3wsr
Change i3-wm workspace names based on content
Stars: ✭ 107 (+256.67%)
Mutual labels:  rice, i3, i3wm
tradeview
A platform for trading crypto currency pairs on crypto exchanges and running crypto currency pair strategies.
Stars: ✭ 69 (+130%)
Mutual labels:  crypto, realtime, altcoin
i3status
Simple status bar for i3 / i3-gaps / sway written in bash and python
Stars: ✭ 69 (+130%)
Mutual labels:  i3bar, i3, i3wm
Coinmon
πŸ’° The cryptocurrency price tool on CLI. πŸ–₯
Stars: ✭ 1,581 (+5170%)
Mutual labels:  crypto, ticker, price-tracker
Cryptocurrency Icons
A set of icons for all the main cryptocurrencies and altcoins, in a range of styles and sizes.
Stars: ✭ 2,116 (+6953.33%)
Mutual labels:  crypto, coin, altcoin
i3
Archivos de configuraciones de i3
Stars: ✭ 32 (+6.67%)
Mutual labels:  i3, i3wm, i3blocks
i3blocks-airpods
i3blocks script for managing airpods and airpods pro.
Stars: ✭ 61 (+103.33%)
Mutual labels:  i3, i3wm, i3blocks
coinbash
πŸ’° A bash script (CLI) for displaying crypto currencies market data in a terminal πŸ–₯
Stars: ✭ 110 (+266.67%)
Mutual labels:  crypto, ticker, price-tracker
i3blocks-gate
Extra i3blocks Scripts For arch Ubuntu very simple and very useful -
Stars: ✭ 42 (+40%)
Mutual labels:  i3, i3wm, i3blocks
dotfiles
My dotfiles, with an out-of-date install-script. Arch, Tiling WM (i3, sway), ZSH, Neovim
Stars: ✭ 20 (-33.33%)
Mutual labels:  i3, i3wm, ricing
hax
Zero-config Hacky Hackpecker setup
Stars: ✭ 16 (-46.67%)
Mutual labels:  i3, i3wm
i3-workspace-switcher
MRU (Most recently used) workspace switcher for i3 window manager
Stars: ✭ 20 (-33.33%)
Mutual labels:  i3, i3wm
dotfiles
A total nord dotfiles used by me. Forever work in progress.
Stars: ✭ 35 (+16.67%)
Mutual labels:  i3, i3wm
pendfetch
Double Pendulum visualised with fetching system information in Python.
Stars: ✭ 62 (+106.67%)
Mutual labels:  rice, ricing
raiseorlaunch
A run-or-raise-application-launcher for i3 window manager.
Stars: ✭ 35 (+16.67%)
Mutual labels:  i3, i3wm

i3blocks-crypto

B&W Themed i3blocks-crypto

πŸ’΅ View your favorite coins' ticker prices with i3blocks.

Setup

BTC, BCH, ETH i3blocks-crypto

Requirements

  • i3
  • i3bar
  • i3blocks
  • Python 3. Works on Python 2 as well, just remove the 3 from #!/usr/bin/env python3 on the top line of the "crypto" script.
    • requests library (pip3 install requests)
  • (Optional, but recommended) Nerd Font for custom icons (bitcoin's B symbol, bitcoin cash's cash icon, ethereum's diamond icon, or any other icon you want) to display. I'm using Roboto Mono Nerd Font Regular.

Configurations

  1. Ensure the "crypto" script within this repo has execute permission. If unsure, run the following:

    chmod +x crypto
  2. Ensure the font attribute within i3 config is prefixed with pango: for HTML colors to work. If it is already prefixed, skip this step. Example:

    font pango:RobotoMono Nerd Font Regular 8
    
  3. Add the following to your i3blocks config (3 instances, Bitcoin, Bitcoin Cash and Ethereum). Remember to change the path within the command attribute to point to the "crypto" script.

    [crypto]
    label=ο…š
    markup=pango
    interval=60
    instance=bitcoin
    command=~/path/to/i3blocks-crypto/crypto # CHANGE ME
    
    [crypto]
    label=οƒ–
    markup=pango
    interval=57
    instance=bitcoin-cash
    command=~/path/to/i3blocks-crypto/crypto # CHANGE ME
    
    [crypto]
    label=οˆ™
    markup=pango
    interval=63
    instance=ethereum
    command=~/path/to/i3blocks-crypto/crypto # CHANGE ME
    

Customization

Icon

To customize the icon that appears to the left of each ticker, simply change the block's label attribute within i3blocks config file (eg. label=$). If you are using a Nerd Font, here is a great reference for finding the icon you are looking for: http://nerdfonts.com/#cheat-sheet

Interval

To customize the interval between each query, simply change the block's interval attribute within i3blocks config file (eg. interval=60 - query every 60 seconds). The interval is block-specific, so each coin can have different query intervals. I chose not to make the intervals the same for each coin to avoid querying them all at once.

Adding a New Cryptocurrency

Adding a new coin to your i3blocks config is super simple. Use this template within i3blocks config to add a new coin:

[crypto]
label=<icon>
markup=pango
interval=60
instance=<coin tag used by CoinMarketCap>
command=~/path/to/i3blocks-crypto/crypto

The "crypto" script uses CoinMarketCap's API to query prices. To find out the tag name of the coin you want to add, visit the coin's page on CoinMarketCap (eg. https://coinmarketcap.com/currencies/stellar/ for stellar lumen), copy the last part of the URL (eg. stellar) and paste it in the instance attribute.

You can add a custom rocket icon as the label as well. First, search "rocket" in http://nerdfonts.com/#cheat-sheet, second, copy the hex value ("f135"), next, paste the hex value into the "hexadecimal" text area in https://r12a.github.io/apps/conversion/, lastly, copy the character output from the "characters" text area and paste it into the label attribute.

XLM crypto i3block

Code for stellar lumen:

[crypto]
label=ο„΅
markup=pango
interval=60
instance=stellar
command=~/path/to/i3blocks-crypto/crypto

Display Price in BTC

By default the coin values are displayed in USD. Add the argument BTC to the command string to make the output price be displayed in BTC

[crypto]
label=$
markup=pango
interval=61
instance=waves
command=~/path/to/i3blocks-crypto/crypto BTC

Price Change Alerts

By default, the price change is based on previous hour. Available: hourly (default) (1h), daily (24h) and weekly (7d) price changes. To customize which price change period to use, modify the PRICE_CHANGE_PERIOD variable in the "crypto" script.

Price changes above 10% will make the ticker turn red. To change this behaviour, modify the PRICE_CHANGE_URGENT_PERCENT variable in the "crypto" script.


Ideas

  • Add option to use Bitfinex API instead of CoinMarketCap. Perhaps use any exchange with ccxt
  • Trigger something when block is clicked. Open coin's information in web browser, or copy the current price, or open exchange in web browser, etc.
  • Add indicator functionality. Alert whenever an indicator has a crossover, SMA? PSAR? etc.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].