美文网首页
ubuntu下Scroll无法开启键盘光解决

ubuntu下Scroll无法开启键盘光解决

作者: JocobZling | 来源:发表于2017-10-27 14:49 被阅读0次
  • /bin/目录下添加脚本文件led
#!/bin/bash -   
#===============================================================================
#
#          FILE: ledctrl
#
#         USAGE: ./ledctrl 
# 
#   DESCRIPTION: 
# 
#       OPTIONS: ---
#  REQUIREMENTS: ---
#          BUGS: ---
#         NOTES: ---
#        AUTHOR: linkscue (scue), linkscue@gmail.com
#  ORGANIZATION: 
#       CREATED: 2014年02月13日 13时16分55秒 CST
#      REVISION:  ---
#===============================================================================

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

相关文章

网友评论

      本文标题:ubuntu下Scroll无法开启键盘光解决

      本文链接:https://www.haomeiwen.com/subject/punrpxtx.html