From 056bb5c767631b3d4bd7c0a1ffd419a5138712d5 Mon Sep 17 00:00:00 2001 From: Steven Saus Date: Mon, 28 Sep 2020 14:18:18 -0400 Subject: [PATCH] AH, got it! with the tmux pane selection --- tmux_sidebar.sh | 2 +- tmux_topbar.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tmux_sidebar.sh b/tmux_sidebar.sh index 793fa84..57cc5ee 100755 --- a/tmux_sidebar.sh +++ b/tmux_sidebar.sh @@ -15,7 +15,7 @@ command=$(echo "$@") o_pane=$(tmux list-panes -F "#D") tmux split-window -h - c_pane=$(tmux list-panes -F "#D") + c_pane=$(tmux list-panes -F "#D" | grep -v "$o_pane") # Uncomment for left hand sidebar #tmux swap-pane -s "$o_pane" -t "$c_pane" printf '\033]2;%s\033\\' 'topbar' diff --git a/tmux_topbar.sh b/tmux_topbar.sh index ae8cd05..50e80d4 100755 --- a/tmux_topbar.sh +++ b/tmux_topbar.sh @@ -15,7 +15,7 @@ o_pane=$(tmux list-panes -F "#D") tmux split-window -v #"$command" - c_pane=$(tmux list-panes -F "#D") + c_pane=$(tmux list-panes -F "#D"| grep -v "$o_pane") tmux swap-pane -s "$o_pane" -t "$c_pane" printf '\033]2;%s\033\\' 'topbar' tmux resize-pane -t "$c_pane" -U 14