Think I fixed the pane issue with tmux commands

master
Steven Saus 4 years ago
parent 655c126c75
commit 030ed0569a
  1. 2
      tmux_devour.sh
  2. 4
      tmux_sidebar.sh
  3. 4
      tmux_topbar.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"

@ -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'

@ -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

Loading…
Cancel
Save