【发布时间】:2018-08-11 22:10:53
【问题描述】:
我编写了一个 bash 脚本来使用 xinput 更改触摸板设置,但是当我尝试运行该脚本时,我收到一条消息说该文件不存在。这是脚本:
#!/bin/bash
# change 'Synaptics Move Speed (278)' mouse speed
xinput set-prop 11 278 1, 15, .05, 40
# change and invert 'Synaptics Scrolling Distance (275)'
xinput set-prop 11 275 -90, -90
# enable 'Synaptics Locked Drags (280)'
xinput set-prop 11 280 1
# change 'Synaptics Locked Drags Timeout (281)'
xinput set-prop 11 281 600
# change 'device accel Constant Deceleration (263)'
xinput set-prop 11 263 3
#change 'Device Accel Adaptive Deceleration (264)'
xinput set-prop 11 264 2
脚本名为 touchpad.sh,当我运行“sudo touchpad.sh”时,我收到错误消息:
sudo: touchpad.sh: command not found
我很困惑,因为我可以在命令行上单独运行这些命令,所以我不确定出了什么问题。
【问题讨论】:
-
请将错误信息添加到您的问题中。
-
我刚刚添加了错误信息。对此感到抱歉