From 2ffe27b63994b85cc0d38c81d81754de1977f334 Mon Sep 17 00:00:00 2001 From: Yax Date: Mon, 10 Nov 2025 17:44:16 +0100 Subject: [PATCH] Add disposable terminal --- dot_tmux.conf.tmpl | 3 +++ 1 file changed, 3 insertions(+) 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!"