You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
scripts/keyboard_backlight.sh

12 lines
341 B
Bash

#!/bin/bash
# cat /sys/class/leds/<keyboard>/max_brightness. Remember that
# Was testing uer input, will change to flag or smth
read TEST
# Change the backlight of the keyboard
echo $TEST | sudo tee /sys/class/leds/smc::kbd_backlight/brightness
# Apparently using Dbus is better
# because it doesn't involve modifications to device files