Created
June 24, 2024 03:44
-
-
Save kaubu/8017acc0542aefc02053152d286d7a3f to your computer and use it in GitHub Desktop.
Toggle keyboard leds on Arch and Arch derivatives that require pressing the scroll lock button
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
# Get list of devices | |
ls /sys/class/leds/ | |
# Find all that have "inputX::scrolllock" where X is an integer, and try the following command with all of them | |
# The one that worked for me was 6 | |
# Toggle keyboard scroll lock leds on | |
sudo sh -c 'echo 1 > /sys/class/leds/input6::scrolllock/brightness' | |
# Toggle keyboard scroll lock leds off | |
sudo sh -c 'echo 0 > /sys/class/leds/input6::scrolllock/brightness' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment