配置debian后,发现键盘背光不能用了
#!/bin/bash
status=/tmp/keyboard_led_status
if [[ ${1} == "on" ]] || [[ ! -e ${status} ]]; then
xset led named 'Scroll Lock' && echo "on" > ${status}
else
xset -led named 'Scroll Lock' && rm -f ${status}
fi
保存/usr/bin/keyboard-led-control设定权限,直接设置快捷键即可