There's wl-clipboard for this, has wl-copy and wl-paste commands. I've been using it on sway for years.