Ru(II) polypyridyl complexes have been successful for a wide range of photoredox applications thanks to their efficient light-induced metal-to-ligand charge transfer. Using the computational framework of density-functional theory, we report how these complexes can be anchored onto covalent triazine frameworks while maintaining their favorable electronic properties. We moreover show that variation of the nitrogen content of the framework linkers or complex ligands endows the heterogenized catalyst with a unique versatility, spanning a wide range of absorption characteristics and redox potentials. By judiciously choosing the catalyst building blocks, it is even possible to selectively guide the charge transfer toward either the scaffold or the accessible pore sites. Rational design of sustainable and efficient photocatalysts thus comes within reach.