Add disposable terminal

This commit is contained in:
Yax 2025-11-10 17:44:16 +01:00
parent 8306b1baaf
commit 2ffe27b639

View file

@ -110,6 +110,9 @@ bind-key M-4 send-keys "$FAVORITE_COMMAND4"
# sshm popup # sshm popup
bind-key C-s display-popup -E -w 80% -d "#{pane_current_path}" "sshm" 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 # Reload tmux config
unbind r unbind r
bind r source-file ~/.tmux.conf \; display-message "tmux config reloaded!" bind r source-file ~/.tmux.conf \; display-message "tmux config reloaded!"