Add -s and -a support for alacritty

Closes #28
break
noctuid 8 years ago
parent 850efe7212
commit bc6a6eaf14

@ -368,6 +368,8 @@ set_class() {
class=Gnome-terminal class=Gnome-terminal
elif [[ $program == urxvtc ]]; then elif [[ $program == urxvtc ]]; then
class=urxvt class=urxvt
elif [[ $program == alacritty ]]; then
class=Alacritty
elif [[ $program == current ]]; then elif [[ $program == current ]]; then
class=$(cat "$MUTDROP_PATH"/current"$num"_class 2> /dev/null) class=$(cat "$MUTDROP_PATH"/current"$num"_class 2> /dev/null)
else else
@ -566,7 +568,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 ]]; then if [[ $program =~ ^(urxvt|alacritty$) ]]; 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