Skip to content

Instantly share code, notes, and snippets.

@mattjmorrison
Created October 3, 2014 02:44
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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