diff --git a/tmux_devour.sh b/tmux_devour.sh index 7c77eb6..5c79d75 100755 --- a/tmux_devour.sh +++ b/tmux_devour.sh @@ -15,7 +15,7 @@ command=$(echo "$@") tmux split-window -h #"$command" - c_pane=$(tmux ls -F "#D") + c_pane=$(tmux list-panes -F "#D") printf '\033]2;%s\033\\' 'devour' tmux resize-pane -t "$c_pane" -R 20 tmux select-pane -m -t "$c_pane" diff --git a/tmux_sidebar.sh b/tmux_sidebar.sh index b0f09a6..793fa84 100755 --- a/tmux_sidebar.sh +++ b/tmux_sidebar.sh @@ -13,9 +13,9 @@ c_tmux=$(env | grep -c TMUX) if [ $c_tmux -gt 0 ];then command=$(echo "$@") - o_pane=$(tmux ls -F "#D") + o_pane=$(tmux list-panes -F "#D") tmux split-window -h - c_pane=$(tmux ls -F "#D") + c_pane=$(tmux list-panes -F "#D") # 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 04643e2..ae8cd05 100755 --- a/tmux_topbar.sh +++ b/tmux_topbar.sh @@ -12,10 +12,10 @@ c_tmux=$(env | grep -c TMUX) if [ $c_tmux -gt 0 ];then command=$(echo "$@") - o_pane=$(tmux ls -F "#D") + o_pane=$(tmux list-panes -F "#D") tmux split-window -v #"$command" - c_pane=$(tmux ls -F "#D") + c_pane=$(tmux list-panes -F "#D") tmux swap-pane -s "$o_pane" -t "$c_pane" printf '\033]2;%s\033\\' 'topbar' tmux resize-pane -t "$c_pane" -U 14