I have stopped using sway many years ago now and I the last update was years ago. Back then, I re-installed sway to implement a feature which was requested by a user. I have not received requests for some years now, and I don't want to get back into sway ricing.
The scripts should still be largely useable though, but I make no guarantees.
This is my colection of scripts designed for the sway window manager (most of these can be adapted for i3 as well). Check each respective folder for instructions.