Displays prices of coins on i3bar (default status bar on i3 window manager) if you are using i3status (default).
-
Clone this repository (for example in
/opt/i3status-bittrex-ticker
) -
Configure i3status. This will help you find location of the config file. Mine is at
/etc/i3status.conf
. Make sure you haveoutput_format = "i3bar"
line ingeneral
section. -
Configure i3 (
~/.config/i3/config
). At the bottom of the file in thebar
section changestatus_command
line tostatus_command i3status | /opt/i3status-bittrex-ticker/i3status_wrapper.py
. This will pipe i3status output into our script where we inject coin prices. -
Copy
example-conf.ini
toconf.ini
. Editconf.ini
to your liking.
In configuration each market pair you want to be displayed is its own section (for example [USDT-BTC]
).
Each section can have following options (all of them are optional):
decimal_points
Number of decimal points you want to see. If not specified all of them will be displayed as returned by Bittrex.limit
If you specify a limit the price will be compared to a limit. If price is higher than limit it will be displayed in green color alongside with the limit and if not the color will be red. If no limit is specified only the price is displayed in white.display_dollars
This will convert prices to dollars. Coins on BTC market (for example BTC-XRP) will be converted by BTC price on USDT-BTC market. Coins on ETH market (ETH-NEO) will be converted by ETH price on USDT-ETH market. Option has no effect on USDT-* markets as they are already displayed in dollars.