I would like to have a script run which blinks my caps lock led. I can do this with 'setleds +caps' from my tty1 but not within X of course. One thing that works is:
(while su:)
setleds +caps < /dev/tty7
That only works *while* su, not through 'sudo'. 'xset led #' does not affect the LED itself, only the state of the caps lock. I've got Sabayon (Gentoo) installed.

Is there something I'm missing? I tried the "Xleds" "1 2 3" in my xorg.conf but that doesn't help. Package 'tleds' is able to control my keyboard's LEDs to display network Tx/Rx activity, so it's clearly possible. However, I've little to no programming know-how to code what I want.