Wacom按钮和鼠标按钮设置

我用的是Wacom Intuos Pro。 而且效果很好。 我尝试使用按钮按钮的工作方式类似于鼠标左键和右键。 但是我不能。 谁能帮我?

我有一个不同的平板电脑,但我使用这个脚本:

#!/bin/bash # # the darn thing change names if is on wireless or not... # device=$(xsetwacom --list | grep -i "pad" | awk '{print $(NF-2)}') xsetwacom --set "$device" button 1 "key ctrl z" xsetwacom --set "$device" button 3 "key shift ctrl s" xsetwacom --set "$device" button 8 "key shift ctrl l" echo "Ok --- all set on device $device." exit 0 

找到按钮需要一些尝试和错误; 我所做的通常是使用脚本为每个键分配一个字母,点击终端进行检查,例如

 xsetwacom --set "$device" button 1 "key 1" xsetwacom --set "$device" button 2 "key 2" 

… 等等。

xsetwacom的手册说:

  Button button-number [mapping] Set a mapping for the specified button-number. Mappings take the form of either a single numeric button or an 'action' to be per‐ formed. If no mapping is provided, the default mapping is restored. Numeric button mappings indicate what X11 button number the given button-number should correspond to. For example, a mapping of "3" means a press of the given button-number will produce as a press of X11 button 3 (ie right click). 

所以要将按钮1和2(蓝色示例)定义为鼠标左键和右键,您应该这样做:

 xsetwacom --set "$device" button 1 1 xsetwacom --set "$device" button 2 3 

(未经测试,我在办公室有我的平板电脑)。