Work with sway?
it might, i don't have sway installed to test.. ..you can check lines 89 - 106 ..i'm not sure if these are the same in sway