Let $G$ be a finite group and $R = \Bbb F_{p^k} G$ a modular group algebra ($p$ divides $|G|$). I would like to know when $R$ is a directly indecomposable ring. It is quite well-known that $R$ is local iff $G$ is a $p$-group, but a finite noncommutative ring can, of course, have nontrivial idempotents without any of them being central.
I have a suspicion that Brauer's three theorems or related results might give a description of such $G$'s, or some strong properties of them (e.g. related to factorization of $|G|$), but I am not familiar with their modus operandi. For instance, if the $p$-Sylow is normal, then the first theorem (from what I'm reading on Wikipedia) is a tautology.
H. Meyer computed the central idempotents for $\Bbb F_2 S_n$, $n \le 54$, and apparently $\Bbb F_2 S_4$ has a single block (the expressions on pp. 3–5 have no $|_4$).
A necessary condition (as pointed out in comments by @rschwieb) is that $G$ has no nontrivial normal subgroup of order coprime to $p$.
Theorem 2.1 of
Fong, P.; Gaschütz, W., A note on the modular representations of solvable groups, J. Reine Angew. Math. 208, 73-78 (1961). ZBL0100.25801.
states that any solvable finite group satisfying this condition has only one $p$-block. This covers the case of $S_4$ in characteristic $2$.
The condition of solvability was weakened to being $p$-constrained by Cossey and Gaschütz in Theorem 1 of
Cossey, John; Gaschütz, Wolfgang, A note on blocks, Proc. 2nd internat. Conf. Theory of Groups, Canberra 1973, Lect. Notes Math. 372, 238-240 (1974). ZBL0295.20015.
(@rschwieb discovered this result in Blackburn and Huppert's Finite Groups II.)
Given that people were proving results like this in the 1970s I'm guessing that there's no simple necessary and sufficient condition for general finite groups. Being $p$-constrained is not a necessary condition, as I used GAP to check sporadic simple groups (which are never $p$-constrained if their order is divisible by $p$), and in characteristic $2$ the Mathieu groups $M_{22}$ and $M_{24}$ each have only one block.