diff --git a/dot_tmux.conf.tmpl b/dot_tmux.conf.tmpl index 09546a0..10b3bd7 100644 --- a/dot_tmux.conf.tmpl +++ b/dot_tmux.conf.tmpl @@ -110,6 +110,9 @@ bind-key M-4 send-keys "$FAVORITE_COMMAND4" # sshm popup bind-key C-s display-popup -E -w 80% -d "#{pane_current_path}" "sshm" +# disposable terminal +bind Space display-popup -E -w 80% -h 80% "tmux kill-session -t popup 2>/dev/null || true; tmux new-session -d -s popup -c '#{pane_current_path}' \\; set-option -t popup detach-on-destroy on \\; attach -t popup" + # Reload tmux config unbind r bind r source-file ~/.tmux.conf \; display-message "tmux config reloaded!"