Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion wemux
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ socket_prefix="/tmp/wemux"
options="-u"
allow_pair_mode="true"
allow_rogue_mode="true"
spawn_window_on_rogue_connect="false"
default_client_mode="mirror"
allow_kick_user="true"
allow_server_change="false"
Expand Down Expand Up @@ -550,7 +551,9 @@ client_mode() {
$wemux attach -t $client_session
elif session_exists; then
$wemux new-session -d -t $server -s $client_session
$wemux new-window -n $username
if [ "$spawn_window_on_rogue_connect" == "true" ]; then
$wemux new-window -n $username
fi
$wemux send-keys -t $client_session $@
$wemux attach -t $client_session
else
Expand Down
6 changes: 6 additions & 0 deletions wemux.conf.example
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
## Defaults to "true"
# allow_rogue_mode="false"

## When new users connect using `wemux rogue`, give them
## a new window. This can be disorienting for new users, especially when
## you asked them to connect to your session to show them something.
## Defaults to "false"
# spawn_window_on_rogue_connect="true"

## When clients enter 'wemux' with no arguments by default it will attempt to
## join an existing pair mode session, if there is no pair session it will start
## a mirror mode session.
Expand Down