Evan Gates  committed 66b76a0

make tmux default in, start tmux but don't open terminal in

  • Participants
  • Parent commits dcb07c3

Comments (0)

Files changed (2)

File extras/

 #      reopen a window when it does so. the "nickserv/in /l w" is at the end
 #      so I don't have to wait for that command before executing the others
+TITLE="pcw" # also in
 DELAY=5 # seconds to wait when we get a "w"
+if ! tmux list-sessions | grep -q "^$TITLE"; then
+	tmux new-session -d -s "$TITLE"
 done < "$SERVERS" >> "$LOG" 2>&1
+tmux attach-session -t "$TITLE"
 # vim: set ts=4 sw=4 noexpandtab:
 # Open a new tmux window for each channel, this one has been requested for a while, and now it works!
 # make sure to add 'set -g default-terminal "screen-256color"' to your ~/.tmux.conf
 # if you don't want color, you can change the part to cw etc. like the other examples
+TITLE="pcw" # also in
 if ! tmux list-sessions | grep -q "^$TITLE"; then
-	urxvtc -title "$TITLE" -e tmux new-session -s "$TITLE" -n "$(basename "$CPATH")" "srw -p \"$(basename "$CPATH")>\" -i \"$OUT\" -o \"$IN\""
+	tmux new-session -d -s "$TITLE" -n "$(basename "$CPATH")" "srw -p \"$(basename "$CPATH")>\" -i \"$OUT\" -o \"$IN\""
 elif ! tmux list-windows -t "$TITLE" | grep -q "$(basename "$CPATH")"; then
 	tmux new-window -d -t "$TITLE" -n "$(basename "$CPATH")" "srw -p \"$(basename "$CPATH")>\" -i \"$OUT\" -o \"$IN\""