diff --git a/connect_xmpp.sh b/connect_xmpp.sh new file mode 100755 index 0000000..dbf93c8 --- /dev/null +++ b/connect_xmpp.sh @@ -0,0 +1,16 @@ +#!/bin/zsh +################################################################################ +# connect_xmpp.sh - spawn xmpp-client in tmux windows +# +# author: mutantmonkey +################################################################################ + +for session in "${XMPP_SESSIONS[@]}"; do + parts=("${(s/:/)session}") + window="${parts[1]}" + name="${parts[2]}" + + tmux new-window -d -t "$window" -n "xmpp:$name" \ + "xmpp-client -config-file $HOME/.config/xmpp-client/$name" + tmux set-window-option -t "$window" remain-on-exit on +done