Slice the cucumber and onion thinly.
Drain the soft tofu and prepare it in chunks.
Heat oil in a pan and sauté the onion.
When the onion becomes translucent, add the cucumber and stir-fry.
Add the soft tofu, season with salt and pepper.
Spoon the stir-fried mixture over rice to serve.