Check out Rectangle App. It's free, open-source, and is billed as the spiritual successor to the once brilliant (but sadly, no-longer-maintained) Spectacle.
You can install Rectangle App either via their website or with Homebrew: $brewbrew install --cask rectangle
