Created
April 2, 2020 23:10
-
-
Save p0bailey/85c0664795537b6489fe807fc9547ce6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/sh | |
## Requirements: tmux curl watch. | |
tmux new-session -d | |
tmux split-window -d -t 0 -h | |
tmux split-window -d -t 0 -v | |
tmux split-window -d -t 2 -v | |
# Use Alt-arrow keys without prefix key to switch panes | |
tmux bind -n M-Left select-pane -L | |
tmux bind -n M-Right select-pane -R | |
tmux bind -n M-Up select-pane -U | |
tmux bind -n M-Down select-pane -D | |
tmux send-keys -t 0 'watch -c -n600 "curl -s -L covid19.trackercli.com/"' enter C-l | |
tmux send-keys -t 1 'watch -c -n600 "curl -s -L covid19.trackercli.com/history/it"' enter C-l | |
tmux send-keys -t 2 'watch -c -n600 "curl -s -L covid19.trackercli.com/history/uk"' enter C-l | |
tmux send-keys -t 3 'watch -c -n600 "curl -s -L covid19.trackercli.com/history/us"' enter C-l | |
tmux attach |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment