
我有一個 .sh 文件,可以在 Ubuntu 16.04 上運行來校準我的平板電腦顯示器。它工作得很好,但像很多事情一樣,升級到 18.04 會使該腳本在啟動時自動停止運行。
該文件是可執行的,我已使用“啟動應用程式首選項”添加了它。根據另一個人的帖子的建議,我嘗試添加sh
到文件路徑的開頭,但這也不起作用。
下面是我的腳本。檔案名稱是xinput.sh
.
#!/bin/bash
xinput set-prop 16 --type=float "Coordinate Transformation Matrix" 0.5 0 0 0 1 0 0 0 1
xinput set-button-map 9 1 3 2