Skip to content

Display prices of coins from gate.io in tmux status bar

Notifications You must be signed in to change notification settings

modood/tmux-gateio-ticker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Tmux gate.io ticker

Enables displaying prices of coins from gate.io in tmux status bar

Usage

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}"

Changing currencies

By default, these currencies are displayed:

  • BTC/USDT
  • ETH/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:

  1. The @percent means displaying percent change of currency.
  2. The base currency should be one of: USDT, BTC, ETH, QTUM, SNET.
  3. Don't forget to reload TMUX environment ($ tmux source-file ~/.tmux.conf) after you do this.

Installation

via tpm (recommended)

  1. Installation tpm.

  2. Add plugin to the list of tpm plugins in .tmux.conf:

    set -g @plugin 'modood/tmux-gateio-ticker'
    
  3. Hit prefix + I to fetch the plugin and source it.

  4. If format strings are added to status-right or status-left, they should now be visible.


manual Installation

  1. Clone the repo:

    $ git clone https://github.com/modood/tmux-gateio-ticker ~/clone/path
    
  2. Add this line to the bottom of .tmux.conf:

    run-shell ~/clone/path/gateio_ticker.tmux
    
  3. Reload TMUX environment:

    $ tmux source-file ~/.tmux.conf
    
  4. If format strings are added to status-right or status-left, they should now be visible.

Contributing

  1. Fork it.
  2. Create your feature branch (git checkout -b my-new-feature).
  3. Commit your changes (git commit -am 'Add some feature').
  4. Push to the branch (git push origin my-new-feature).
  5. Create new Pull Request.

License

This repo is released under the MIT License.

About

Display prices of coins from gate.io in tmux status bar

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages