If you're using i3wm on your noble OS, use Spectacle.app on your tight-fisted OS, and want your i3 to behave like spectacle at times, then try pectaci3
.
Of course the config file isn't complete, it's just an example in and with which you can drop and play. Put the executables on your path. Lemme what to do better via PR, svp.