commit c4ba21fa5a72b8a31329e78e412e73b9363a84bf
parent c51390f5db9d998a32028c461edfb3ed9a9f5626
Author: Daniel Moch <daniel@danielmoch.com>
Date: Thu, 12 Jul 2018 05:45:57 -0400
Fix and adjust tmux-session
Diffstat:
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/.local/bin/tmux-session b/.local/bin/tmux-session
@@ -36,16 +36,18 @@ if echo $1 | grep iterm > /dev/null 2>&1
then
name=iterm
columns=`tput cols`
- width=$(($columns - 80))
+ width=$(($columns - 80 - 1))
tmux new-session -d -x $columns -y `tput lines` -s $name vim
tmux rename-window -t $name:1 code
+ tmux splitw -h -l 80
+ tmux setw main-pane-width $width
tmux selectl main-vertical
if echo $1 | grep chat > /dev/null 2>&1
then
width=$(($columns - 30))
tmux new-window -t $name -n "chat" irssi
tmux setw main-pane-width $width
- tmux splitw -h cat ~/.irssi/nicklistfifo
+ tmux splitw -h -l 30 cat ~/.irssi/nicklistfifo
tmux selectl main-vertical
tmux select-pane -t $name:2.1
tmux send-keys -t $name:2.1 "/keyring" "C-m" "/nicklist fifo" "C-m"
@@ -74,11 +76,11 @@ elif [ $1 = "code" ]
then
name=code
columns=`tput cols`
- width=$(($columns - 80))
+ width=$(($columns - 80 - 1))
tmux new-session -d -x $columns -y `tput lines` -s $name vim
tmux rename-window -t $name:1 code
tmux setw main-pane-width $width
- tmux splitw
+ tmux splitw -h -l 80
tmux selectl main-vertical
elif [ $1 = "notes" ]
then
@@ -91,7 +93,7 @@ then
width=$(($columns - 30))
tmux new-session -d -x $columns -y `tput lines` -s $name irssi
tmux setw main-pane-width $width
- tmux splitw -h cat ~/.irssi/nicklistfifo
+ tmux splitw -h -l 30 cat ~/.irssi/nicklistfifo
tmux selectl main-vertical
tmux send-keys -t $name:1.1 "/keyring" "C-m" "/nicklist fifo" "C-m"
fi