Skip to content

Instantly share code, notes, and snippets.

@benkaiser
Last active December 23, 2015 00:19
Show Gist options
  • Save benkaiser/6552463 to your computer and use it in GitHub Desktop.
Save benkaiser/6552463 to your computer and use it in GitHub Desktop.
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