Skip to content

Instantly share code, notes, and snippets.

@p0bailey
Created April 2, 2020 23:10
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 p0bailey/85c0664795537b6489fe807fc9547ce6 to your computer and use it in GitHub Desktop.
Save p0bailey/85c0664795537b6489fe807fc9547ce6 to your computer and use it in GitHub Desktop.
#!/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