LED aceso
sudo xset led 3
LED desligado
sudo xset -led 3
Um script para ativar / desativar o LED com a tecla "Scroll Lock":
#!/bin/bash
on=$(xset -q | grep 'Scroll Lock:' | cut -d ":" -f 7)
echo $on
if [ $on == "off" ]; then
xset led named "Scroll Lock"
else
xset -led named "Scroll Lock"
fi
Salve e ligue a uma tecla com um atalho.
Sources:
xset Man page: ftp://www.x.org/pub/X11R7.5/doc/man/man1/xset.1.html
Forums: http://www.forosuse.org/forosuse/showthread.php?t=33563