Note that Spectacle for macOS is no longer being maintained.

https://github.com/eczarny/spectacle#important-note

A common alternative mentioned is Rectangle.

https://rectangleapp.com/