Enables displaying prices of coins from gate.io in tmux status bar
This is done by introducing a new format string:
#{gateio_ticker}- display prices
Add it to status-right or status-left tmux option:
set -g status-right "#{gateio_ticker}"
By default, these currencies are displayed:
BTC/USDTETH/USDT@percent
Default Preview:
BTC/USDT: 7677.8100, ETH/USDT: 770.0000 -7.5557%
You can change these defaults by adding the following to .tmux.conf:
set -g @gateio_ticker_currencies "BTC/USDT@percent XRP/USDT DOGE/USDT"
Preview:
BTC/USDT: 7671.2700 21.7220%, XRP/USDT: 0.7392, DOGE/USDT: 0.0042
Notes:
- The
@percentmeans displaying percent change of currency. - The base currency should be one of:
USDT,BTC,ETH,QTUM,SNET. - Don't forget to reload TMUX environment ($ tmux source-file ~/.tmux.conf) after you do this.
via tpm (recommended)
-
Installation tpm.
-
Add plugin to the list of tpm plugins in
.tmux.conf:set -g @plugin 'modood/tmux-gateio-ticker' -
Hit
prefix + Ito fetch the plugin and source it. -
If format strings are added to
status-rightorstatus-left, they should now be visible.
manual Installation
-
Clone the repo:
$ git clone https://github.com/modood/tmux-gateio-ticker ~/clone/path -
Add this line to the bottom of
.tmux.conf:run-shell ~/clone/path/gateio_ticker.tmux -
Reload TMUX environment:
$ tmux source-file ~/.tmux.conf -
If format strings are added to
status-rightorstatus-left, they should now be visible.
- Fork it.
- Create your feature branch (
git checkout -b my-new-feature). - Commit your changes (
git commit -am 'Add some feature'). - Push to the branch (
git push origin my-new-feature). - Create new Pull Request.
This repo is released under the MIT License.