Skip to content

Instantly share code, notes, and snippets.

@navinpai
Last active April 13, 2020 11:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save navinpai/93593c149201a1c50a6e4e7fb836c581 to your computer and use it in GitHub Desktop.
Save navinpai/93593c149201a1c50a6e4e7fb836c581 to your computer and use it in GitHub Desktop.
India Corona Stats Tmux Conf
# Note: This assumes `jq` is already installed. Use `brew install jq` on OSX
# Add this to `~/.tmux.conf` to get Corona Stats in yout Tmux status bar
# Example of how this looks: https://imgur.com/hXrV5Nw (This is on OSX with iTerm)
set -g status-right "#[fg=#ffffff,bg=#ff0000,bold] #(curl -s https://api.covid19india.org/data.json -H 'Cache-Control: no-cache' | jq -r '. | .statewise[0].confirmed + \" (+\" + .statewise[0].deltaconfirmed + \")\"') "
# Interval to refresh data at
set -g status-interval 180
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment