Skip to content

Instantly share code, notes, and snippets.

@kaubu
Created June 24, 2024 03:44
Show Gist options
  • Save kaubu/8017acc0542aefc02053152d286d7a3f to your computer and use it in GitHub Desktop.
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
# 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