Last active
December 23, 2015 00:19
-
-
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
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
#!/bin/sh | |
chmod 0777 /sys/class/leds/samsung::kbd_backlight/brightness |
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
#!/bin/sh | |
k_lvl="/sys/class/leds/samsung::kbd_backlight/brightness" | |
value="$(cat $k_lvl)" | |
let value-- | |
echo $value > $k_lvl |
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
#!/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