Hey, looks great! I'm a Sway user too :3
If you don't mind sharing, I'm curious about the swaybar script: how are you getting the currently focused window?
P.S. You can add backslashes (\) at the ends of lines to do hard linebreaks (e.g. on your list of programs).