[Tex/LaTex] Metropolis custom footline

beamerbeamer-metropolisheader-footerlogos

How could we have a footline as follows?

Author's name (Inst) [space] Title [space] slide's number

Could the title be centered between author's details and slide's number?

\documentclass{beamer}

\usetheme{metropolis}
\setbeamertemplate{frame footer}{\insertshortauthor~(\insertshortinstitute) \hspace*{4cm} \insertshorttitle}

\setbeamerfont{page number in head/foot}{size=\tiny}
\setbeamercolor{footline}{fg=gray}

\author{names}
\institute{institute}

\begin{document}
\begin{frame}
content...
\end{frame}
\end{document}

Best Answer

You should use \hfill instead of custom spaces.

footer

\documentclass{beamer}

\usetheme{metropolis}
\setbeamertemplate{frame footer}{\insertshortauthor~(\insertshortinstitute)\hfill\insertshorttitle}

\setbeamerfont{page number in head/foot}{size=\tiny}
\setbeamercolor{footline}{fg=gray}

\author{names}
\institute{institute}
\title{Quack}

\begin{document}
\begin{frame}
content...
\end{frame}
\end{document}