Fun Fact: A standard LEGO minifigure hand is the perfect size for holding most small electronics cables. This might be the most awesome thing to ever happen to cable management.
Another perfectly-sized, commonly-stored tech item? Aux jacks also fit in their tiny yellow hands.
As for securing minifigures to your desk? That's surprisingly simple to solve too. Mount simple base plates with tape or reusable rubber like Sugru. A word of warning from the folks at Modernistic Design though: placing something larger than their hands repeatedly will stretch out the plastic slowly and it doesn't shrink back. So perhaps don't risk this hack with any beloved toys.
Tip via Modernistic Design.