To press tofu, wrap tofu in an absorbent towel on a cutting board. Weight it down with cookbooks, cutting boards, or something else heavy for 10 to 15 minutes.
Cook the pasta according to the package directions while tofu presses.
Remove the tofu from its towel wrap and cut into cubes. Toss in a small bowl with olive oil along with onion and garlic powders.
Heat a large skillet over medium heat. Once heated, add coated tofu and fry until all sides are firm and starting to brown. Remove from the pan and set aside.
Cook the peppers and green onions in the skillet until tender, about 4 to 5 minutes.
Once pasta is cooked and tofu is fried, toss with peppers and onion in a large bowl. Top with pesto. Serve immediately, or portion into four servings in meal prep containers, and refrigerate.