Here is the end clip that fits onto the end of a piece of 3/4 unistrut
it’s designed to work with:
I made mine with a pair of magnets which are probably unneeded but that’s what the holes on the bottom are for.
This was really just a prototype that happened to work really well so I never bothered to refine it. The endcap doesn’t match up quite right and I probably should have used the wider strut instead of the 3/4 but I didn’t know it existed.