Skip to content

Commit f116d66

Browse files
committed
Make new tab on RogueConnect optional, non-default
Fixes zolrath#75
1 parent 01c6541 commit f116d66

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

wemux

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ socket_prefix="/tmp/wemux"
5353
options="-u"
5454
allow_pair_mode="true"
5555
allow_rogue_mode="true"
56+
spawn_window_on_rogue_connect="false"
5657
default_client_mode="mirror"
5758
allow_kick_user="true"
5859
allow_server_change="false"
@@ -550,7 +551,9 @@ client_mode() {
550551
$wemux attach -t $client_session
551552
elif session_exists; then
552553
$wemux new-session -d -t $server -s $client_session
553-
$wemux new-window -n $username
554+
if [ "$spawn_window_on_rogue_connect" == "true" ]; then
555+
$wemux new-window -n $username
556+
fi
554557
$wemux send-keys -t $client_session $@
555558
$wemux attach -t $client_session
556559
else

wemux.conf.example

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@
2626
## Defaults to "true"
2727
# allow_rogue_mode="false"
2828

29+
## When new users connect using `wemux rogue`, give them
30+
## a new window. This can be disorienting for new users, especially when
31+
## you asked them to connect to your session to show them something.
32+
## Defaults to "false"
33+
# spawn_window_on_rogue_connect="true"
34+
2935
## When clients enter 'wemux' with no arguments by default it will attempt to
3036
## join an existing pair mode session, if there is no pair session it will start
3137
## a mirror mode session.

0 commit comments

Comments
 (0)