Compare commits

..

No commits in common. "150c13ab313380f1b6b5ab3151777b82656c7885" and "6aeadd41293692de0eb0582675e35aea3c0f3aea" have entirely different histories.

7 changed files with 5 additions and 48 deletions

4
layouts/session-local Executable file → Normal file
View File

@ -1,5 +1,3 @@
#!/usr/bin/env -S tmux source-file
rename-window home rename-window home
new-window -c ~/.config/nvim new-window -c ~/.config/nvim
@ -17,4 +15,4 @@ move-window -s local:config/local -t 9
select-window -t local:home select-window -t local:home
# vim: ft=tmux # vim: filetype=tmux

4
layouts/session-main Executable file → Normal file
View File

@ -1,6 +1,4 @@
#!/usr/bin/env -S tmux source-file
rename-session main rename-session main
rename-window home rename-window home
# vim: ft=tmux # vim: filetype=tmux

2
layouts/session-visor Executable file → Normal file
View File

@ -1,5 +1,3 @@
#!/usr/bin/env -S tmux source-file
rename-window home rename-window home
split-window -h htop split-window -h htop
select-pane -t visor:home.1 select-pane -t visor:home.1

View File

@ -1,28 +0,0 @@
#!/usr/bin/env zsh
cols=`tput cols`
lines=`tput lines`
width=$(( $cols / 2 )).0
height=$lines.0
ratio=$(( ($width / $height) * 100 ))
# echo "size: ( $width,$height ) ratio: $ratio"
if [[ $cols -lt 140 ]] && [[ $lines -lt 70 ]]; then
# terminal is too small
exit
fi
if [[ $ratio -ge 100 ]]; then
# terminal is wide or square
if [[ `tput cols` -gt 230 ]]; then
# terminal is wide and large
`dirname $0`/window-wide-right
else
# terminal is wide and small
tmux split-window -h -l 50%
fi
else
# terminal is tall
`dirname $0`/window-tall
fi

5
layouts/window-tall Executable file → Normal file
View File

@ -1,6 +1,3 @@
#!/usr/bin/env -S tmux source-file # vim: ft=tmux
split-window -v -l 34% split-window -v -l 34%
select-pane -t 1 select-pane -t 1
# vim: ft=tmux

5
layouts/window-wide-left Executable file → Normal file
View File

@ -1,6 +1,3 @@
#!/usr/bin/env -S tmux source-file # vim: ft=tmux
split-window -h -l 43% split-window -h -l 43%
select-pane -t 1 select-pane -t 1
# vim: ft=tmux

5
layouts/window-wide-right Executable file → Normal file
View File

@ -1,6 +1,3 @@
#!/usr/bin/env -S tmux source-file # vim: ft=tmux
split-window -h -l 57% split-window -h -l 57%
select-pane -t 1 select-pane -t 1
# vim: ft=tmux