Last active
April 13, 2020 11:46
-
-
Save navinpai/93593c149201a1c50a6e4e7fb836c581 to your computer and use it in GitHub Desktop.
India Corona Stats Tmux Conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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