Skip to content

Instantly share code, notes, and snippets.

@mattjmorrison
Created October 3, 2014 02:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattjmorrison/f4bc354dcf74c122a06f to your computer and use it in GitHub Desktop.
Save mattjmorrison/f4bc354dcf74c122a06f to your computer and use it in GitHub Desktop.
Tmux Chess Clock Pairing
#!/bin/bash
`tmux set-option -g display-time 2000`
IFS=$'\n'
CLIENTS=()
for CLIENT in $(tmux list-clients); do
CLIENTID="${CLIENT%:*}"
if [[ $CLIENT == *\(ro\) ]]
then
`tmux display-message -c $CLIENTID "YOU'RE IT"`
else
`tmux display-message -c $CLIENTID "READ ONLY"`
fi
`tmux switch-client -c $CLIENTID -r`
done
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment