- 论坛徽章:
- 0
|
各位,我想通过shell脚本修改/etc/X11/x.conf文件的特定内容如何编写。
eg。 修改InputDevice 中的MinX,MinY,MaxX,MaxY对应的数字。
#xxx.sh MinXData MinYData MaxXData MaxYData
赐教了!
Section "InputDevice"
Identifier "IDCTouchScreen"
Driver "idctouch"
Option "Device" "/dev/psaux"
Option "Interface" "2"
Option "DeviceName" "IDCTouchScreen"
Option "MinX" "160"
Option "MinY" "235"
Option "MaxX" "7898"
Option "MaxY" "7700"
Option "ScreenNumber" "0"
Option "ButtonNumber" "2"
Option "ReportingMode" "Raw"
Option "Emulate3Buttons" "0"
Option "DebugLevel" "0"
Option "SendCoreEvents" "On"
Option "RealLeftBtn" "0"
Option "WaitDeviceCount1" "100"
Option "WaitDeviceCount2" "10"
EndSection |
|