Cut the tofu into bite-sized cubes. Heat half of the oil in a small frying pan or wok and fry the tofu all sides until crispy. Set aside.
Finely slice the onion and garlic.
Heat the oil in a large frying pan and gently sauté the onion and garlic. Add the spices, stir for a minute, then add the rice and beans. Stir over low heat for a couple of minutes, then fold in the roasted pepper slices and add the lime juice. Season with salt and pepper.
Stir for a couple of minutes, turn off the heat and fold in the rocket salad.
Serve with limes juice squeezed over it and dusted with some chilli flakes if liked.