I knew about xclip and xsel, however these are a bit annoying as they need various flags, to say whether we're copying or pasting, which I conveniently forget every time I need to use them.
Thanks to pay-respects I discovered this other tool combo which is exactly what I needed and should be much easier to remember (no extra flags necessary!), fingers crossed!