Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Stored somewhere in the default PATH. e.g. /usr/bin/raise_key_backlight and /usr/bin/lower_key_backlight
#!/bin/sh
chmod 0777 /sys/class/leds/samsung::kbd_backlight/brightness
#!/bin/sh
k_lvl="/sys/class/leds/samsung::kbd_backlight/brightness"
value="$(cat $k_lvl)"
let value--
echo $value > $k_lvl
#!/bin/sh
k_lvl="/sys/class/leds/samsung::kbd_backlight/brightness"
value="$(cat $k_lvl)"
let value++
echo $value > $k_lvl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.