From ffef66467839a0366b23a79c0bec19ba11851c75 Mon Sep 17 00:00:00 2001 From: noctuid Date: Thu, 8 Mar 2018 17:11:14 -0500 Subject: [PATCH] Automatically use -d 0 0 with alacritty Addresses #38. --- tdrop | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tdrop b/tdrop index 4927ba1..0c008d5 100755 --- a/tdrop +++ b/tdrop @@ -560,6 +560,10 @@ create_win_return_wid() { program_start() { local program_command tmux_command wid program_command="$program $program_flags" + if [[ $program == alacritty ]]; then + # prevent alacritty from resizing the terminal to 80x24 + program_command="$program_command -d 0 0" + fi if [[ -n "$session_name" ]]; then session_name=$(printf "%q" "$session_name") tmux_command="'tmux attach-session -dt $session_name || \