Skip to content

Commit

Permalink
Add support for xiate
Browse files Browse the repository at this point in the history
Fixes #31.
  • Loading branch information
noctuid committed Jul 5, 2017
1 parent e2b1495 commit bbb6ee5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
6 changes: 5 additions & 1 deletion tdrop
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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\""
Expand Down

0 comments on commit bbb6ee5

Please sign in to comment.