Why are you using rofi on sway out of curiosity? I have found tofi to be a pretty feature complete wayland native alternative for what I did with rofi back on i3 but it looks like you may use more of it's features than I did.
Nevermind, apparently I missed a memo somewhere, rofi (well the fork anyway) is wayland native I guess.