Custom Search

Saturday, September 12, 2009

How to make keyboard leds dancing using linux unix shell script

save this code in file keyled.sh, then
Press Ctrl +Alt + F2 or F1 -----> to goto Terminal.
chmod 777 keyled.sh -----> to make keyled.sh executable
then run the script by typing ./keyled.sh i terminal.
Press Ctrl +Alt + F7 ----->to go back to GNOME

man setled
man sleep
-----------------------------------------------------------------------------------
while true
do
setleds +num
sleep .5
setleds -num
sleep .5
setleds +caps
sleep .5
setleds -caps
sleep .5
setleds +scroll
sleep .5
setleds -scroll
done
---------------------------------------------------------------------------------------

No comments:

Post a Comment