Add support for xiate

Fixes #31.
break
noctuid 7 years ago
parent e2b1495996
commit bbb6ee5e5f

@ -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) - Terminix (-s will not work if the terminix process is already running)
- st (-s does not work) - st (-s does not work)
- Alacritty - Alacritty
- xiate
If your terminal doesn't work with tdrop, feel free to make an issue. Please follow the steps in the troubleshooting section. If your terminal doesn't work with tdrop, feel free to make an issue. Please follow the steps in the troubleshooting section.

@ -342,6 +342,8 @@ set_class() {
class=Gnome-terminal class=Gnome-terminal
elif [[ $program == urxvtc ]]; then elif [[ $program == urxvtc ]]; then
class=urxvt class=urxvt
elif [[ $program == xiatec ]]; then
class=xiate
elif [[ $program == alacritty ]]; then elif [[ $program == alacritty ]]; then
class=Alacritty class=Alacritty
elif [[ $program == current ]]; then elif [[ $program == current ]]; then
@ -494,6 +496,8 @@ create_win_return_wid() {
elif [[ $program == urxvtc ]]; then elif [[ $program == urxvtc ]]; then
blacklist=$(xdotool search --classname urxvtd) blacklist=$(xdotool search --classname urxvtd)
pid=$(pgrep -x urxvtd) pid=$(pgrep -x urxvtd)
elif [[ $program == xiatec ]]; then
pid=$(pgrep -x xiate)
elif [[ $program == chromium ]]; then elif [[ $program == chromium ]]; then
# this may work fine # this may work fine
# pid=$(pgrep -xo chromium) # pid=$(pgrep -xo chromium)
@ -543,7 +547,7 @@ program_start() {
tmux_command="'tmux attach-session -dt $session_name || \ tmux_command="'tmux attach-session -dt $session_name || \
tmuxinator start $session_name || \ tmuxinator start $session_name || \
tmux new-session -s $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" program_command="$program_command -e bash -c $tmux_command"
elif [[ $program == terminix ]]; then elif [[ $program == terminix ]]; then
program_command="$program_command -x \"bash -c $tmux_command\"" program_command="$program_command -x \"bash -c $tmux_command\""

Loading…
Cancel
Save