Instantly share code, notes, and snippets.

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