diff --git a/README.md b/README.md index d869ec4..fc3890e 100644 --- a/README.md +++ b/README.md @@ -96,6 +96,7 @@ These terminals have been tested with tdrop and support the `-s` and `-a` flags - Terminix (-s will not work if the terminix process is already running) - st (-s does not work) - Alacritty +- xiate If your terminal doesn't work with tdrop, feel free to make an issue. Please follow the steps in the troubleshooting section. diff --git a/tdrop b/tdrop index d1ebeb3..d3ea3c7 100755 --- a/tdrop +++ b/tdrop @@ -342,6 +342,8 @@ set_class() { class=Gnome-terminal elif [[ $program == urxvtc ]]; then class=urxvt + elif [[ $program == xiatec ]]; then + class=xiate elif [[ $program == alacritty ]]; then class=Alacritty elif [[ $program == current ]]; then @@ -494,6 +496,8 @@ create_win_return_wid() { elif [[ $program == urxvtc ]]; then blacklist=$(xdotool search --classname urxvtd) pid=$(pgrep -x urxvtd) + elif [[ $program == xiatec ]]; then + pid=$(pgrep -x xiate) elif [[ $program == chromium ]]; then # this may work fine # pid=$(pgrep -xo chromium) @@ -543,7 +547,7 @@ program_start() { tmux_command="'tmux attach-session -dt $session_name || \ tmuxinator start $session_name || \ tmux new-session -s $session_name'" - if [[ $program =~ ^(urxvt|alacritty$) ]]; then + if [[ $program =~ ^(urxvt|alacritty|xiatec$) ]]; then program_command="$program_command -e bash -c $tmux_command" elif [[ $program == terminix ]]; then program_command="$program_command -x \"bash -c $tmux_command\""