【分享】使用外置键盘背光灯
Tofloor
poster avatar
herdde
deepin
2017-08-11 05:24
Author
新建 beiguang.sh
粘贴以下内容
  1. #!/bin/bash
  2. if [ "$1" = "on" ] ||[ "$1" = "ON" ]; then
  3. xset led named 'Scroll Lock'
  4. elif [ "$1" = "off" ] ||[ "$1" = "OFF" ]; then
  5. xset -led named 'Scroll Lock'
  6. else
  7. echo "Usage: $0 on/off"
  8. exit 1
  9. fi
  10. exit 0
Copy the Code
在属性添加可执行权限
使用方法:
打开背光:./beiguang.sh on
关闭背光:./beiguang.sh off
Reply Favorite View the author
All Replies
avatar
jingle
deepin
2017-08-11 05:32
#1
这个可以有
Reply View the author
avatar
wangyong
deepin
2017-08-11 07:20
#2
厉害
Reply View the author