File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ socket_prefix="/tmp/wemux"
53
53
options=" -u"
54
54
allow_pair_mode=" true"
55
55
allow_rogue_mode=" true"
56
+ spawn_window_on_rogue_connect=" false"
56
57
default_client_mode=" mirror"
57
58
allow_kick_user=" true"
58
59
allow_server_change=" false"
@@ -550,7 +551,9 @@ client_mode() {
550
551
$wemux attach -t $client_session
551
552
elif session_exists; then
552
553
$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
554
557
$wemux send-keys -t $client_session $@
555
558
$wemux attach -t $client_session
556
559
else
Original file line number Diff line number Diff line change 26
26
## Defaults to "true"
27
27
# allow_rogue_mode="false"
28
28
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
+
29
35
## When clients enter 'wemux' with no arguments by default it will attempt to
30
36
## join an existing pair mode session, if there is no pair session it will start
31
37
## a mirror mode session.
You can’t perform that action at this time.
0 commit comments