Files
dotfiles/config/tmux/scratch
Uttarayan Mondal 46d7664359 [update] Replace coq with cmp
[update] Tmux scratchpad size change
[update] Remove redundant redline.so
2023-09-11 11:32:18 +05:30

10 lines
268 B
Bash
Executable File

#!/bin/sh
width=${2:-90%}
height=${2:-90%}
if [ "$(tmux display-message -p -F "#{session_name}")" = "scratch" ];then
tmux detach-client
else
tmux popup -d '#{pane_current_path}' -xC -yC -w$width -h$height -E "tmux attach -t scratch || tmux new -s scratch"
fi