Created
August 28, 2020 00:01
-
-
Save n0toose/9a0a98d3b3c352c449b399f7fd58ec27 to your computer and use it in GitHub Desktop.
Blink LED light in Linux randomly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# replace target device (input28::capslock) with your desired device, that one just worked with my keyboard | |
while true; | |
do | |
sudo echo $((0 + RANDOM%2)) | | |
sudo tee /sys/class/leds/input28\:\:capslock/brightness -; | |
sleep 0.05; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment