Forever ago I designed a super basic retention clip for a USB cable to attach to a IKEA 20mm thick counter so the cable wouldn't fall behind when not needed. Just because I was reworking some old designs I thought Id revist this one and make a couple of changes to make it a bit more…. universal. So this is intended to be something quick to print and SUPER basic.
While it is still intended for a 20mm thick table top or shelf I have changed it to support a tightening screw so you can attach it to surfaces between 24mm and 9mm without it wiggling loose. Also unlike the previous version I have loosened the slot the cable is pushed in through to make it less of a hassle to remove the cable too if you want to take it somewhere else. The clip is intended as a guide so it shouldn't be so loose that cables slip out (unless you have some thin cables) but worse case you can push it down depending on your filament choice (or add some tape or a rubber band if you are really having troubles with thinner cables, sorry I couldnt make it too small else you wouldn't be able to get regular cables in there).
Anyway this is a super simple design just enough for one cable and finger tightening the screw underneath, but I also added a screwdriver slot if you have difficulty tightening/loosening it by hand for whatever reason.