When keyboard has no LED, for Linux machine, is there an easy way to do this? By Command Line, Python, Perl or Ruby, to show when keyboard has CapLock
, NumLock
activated?
If you want to use the command line to check led status use:
xset q | grep LED
This will return a number resulting from the binary addition of the led status lights. Caps lock is the first bit, Numlock is the second... the rest you need to experiment as I have only used those two.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With