awk is in a strange position between simple grep commands and full-featured Python programs. It’s powerful but too domain-specific, and if you learned how to write multiline sed scripts you don’t need awk anymore.
And yes, you can do
python -e “…”
for (really long) Python one-liners.
What you are searching is called tiling window manager, there are several with various features.
On Gnome there is a hotkey for horizontal side-by-side windows, on Plasma there are more layout options and keyboard shortcuts, but I’m not sure if any of them has one-third tiling.
https://help.gnome.org/users/gnome-help/stable/shell-windows-tiled.html.en