所以我一直在用我的 wacom 摆弄 xsetwacom,我想用笔触摸平板电脑,而它不会认为我想要按住“鼠标左键”。这样做的原因是移动笔而不选择意味着悬停在平板电脑上,这可能不精确。我想将笔上的第一个按钮用作鼠标左键。我有一长串 xsetwacom 的参数,但我不确定如何使用笔在不选择(触摸时)的情况下导航平板电脑
xsetwacom --list parameters
Area - Valid tablet area in device coordinates.
Button - X11 event to which the given button should be mapped.
ToolDebugLevel - Level of debugging trace for individual tools (default is 0 [off]).
TabletDebugLevel - Level of debugging statements applied to shared code paths between all tools associated with the same tablet (default is 0 [off]).
Suppress - Number of points trimmed (default is 2).
RawSample - Number of raw data used to filter the points (default is 4).
PressureCurve - Bezier curve for pressure (default is 0 0 100 100 [linear]).
Mode - Switches cursor movement mode (default is absolute).
TabletPCButton - Turns on/off Tablet PC buttons (default is off for regular tablets, on for Tablet PC).
Touch - Turns on/off Touch events (default is on).
HWTouchSwitchState - Touch events turned on/off by hardware switch.
Gesture - Turns on/off multi-touch gesture events (default is on).
ZoomDistance - Minimum distance for a zoom gesture (default is 50).
ScrollDistance - Minimum motion before sending a scroll gesture (default is 20).
TapTime - Minimum time between taps for a right click (default is 250).
CursorProximity - Sets cursor distance for proximity-out in distance from the tablet (default is 10 for Intuos series, 42 for Graphire series).
Rotate - Sets the rotation of the tablet. Values = none, cw, ccw, half (default is none).
RelWheelUp - X11 event to which relative wheel up should be mapped.
RelWheelDown - X11 event to which relative wheel down should be mapped.
AbsWheelUp - X11 event to which absolute wheel up should be mapped.
AbsWheelDown - X11 event to which absolute wheel down should be mapped.
AbsWheel2Up - X11 event to which absolute wheel up should be mapped.
AbsWheel2Down - X11 event to which absolute wheel down should be mapped.
StripLeftUp - X11 event to which left strip up should be mapped.
StripLeftDown - X11 event to which left strip down should be mapped.
StripRightUp - X11 event to which right strip up should be mapped.
StripRightDown - X11 event to which right strip down should be mapped.
Threshold - Sets tip/eraser pressure threshold (default is 27).
ResetArea - Resets the bounding coordinates to default in tablet units.
ToolType - Returns the tool type of the associated device.
ToolSerial - Returns the serial number of the current device in proximity.
ToolID - Returns the tool ID of the current tool in proximity.
ToolSerialPrevious - Returns the serial number of the previous device in proximity.
BindToSerial - Binds this device to the serial number.
TabletID - Returns the tablet ID of the associated device.
PressureRecalibration - Turns on/off Tablet pressure recalibration
MapToOutput - Map the device to the given output.
all - Get value for all parameters.
答案1
您需要更改触控笔按钮的设置。使用xsetwacom list
查找触控笔的名称,在我的情况下,命令的输出是:
Wacom Intuos S Pad pad id: 15 type: PAD
Wacom Intuos S Pen stylus id: 16 type: STYLUS
Wacom Intuos S Pen eraser id: 17 type: ERASER
Wacom Intuos S Pen cursor id: 18 type: CURSOR
手写笔是“Wacom Intuos S Pen 手写笔”。
DEVICE_STYLUS='Wacom Intuos S Pen stylus'
xsetwacom set "$DEVICE_STYLUS" Button 1 "button +0" # nothing on touch
xsetwacom set "$DEVICE_STYLUS" Button 2 "button +1" # left click on lower button
xsetwacom set "$DEVICE_STYLUS" Button 3 "button +3" # right click on upper button
就是这样,Button 1触控笔的触控是触摸 pad,而不是真正的按钮。上面的脚本禁用了此操作。下方按钮是Button 2,为其分配左键单击。上方按钮是Button 3,您可能希望为其分配右键单击或其他操作。如果您有更多按钮,您可以为它们分配其他操作。请注意,pad 按钮属于 pad 设备,而不是触控笔。
xsetwacom 的设置在系统重启后不会保留,因此您可能需要编写小脚本并在启动后手动或自动运行它。重新连接 pad 也会将设置重置为默认值,您可以尝试一下然后重置。您可以像这样检查每个设备的所有当前设置:
xsetwacom -s get "$DEVICE_STYLUS" all
检查哪些选项可以针对具体设备进行更改可能会很有帮助。请注意,某些选项可能不适用于您的型号。