Skip to content

Instantly share code, notes, and snippets.

View synt-xerror's full-sized avatar

SyntaxError! synt-xerror

View GitHub Profile
@synt-xerror
synt-xerror / How-To-Turn-Keyboard-Led-On.md
Last active February 17, 2026 19:42
Script to turn keyboard led on

Create a udev rule on /etc/udev/rules.d/99-scrolllock.rules with this content:

SUBSYSTEM=="leds", KERNEL=="input*::scrolllock", RUN+="/bin/chmod 777 /sys/class/leds/%k/brightness"

After, create a file on .local/bin/led (or other directory for your scripts), and put this content:

#!/bin/bash