首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >xsetwacom按钮按重复

xsetwacom按钮按重复
EN

Unix & Linux用户
提问于 2017-05-13 21:43:11
回答 1查看 1.3K关注 0票数 2

我在Wacom设备上绑定了一个按钮,如下所示:

代码语言:javascript
复制
xsetwacom --set "Wacom Cintiq 13HD touch Pad pad" button 8 key "]"

当我按下并按住按钮,它只会导致一个关键事件。我该怎么解决这个问题?

EN

回答 1

Unix & Linux用户

发布于 2017-05-13 21:43:11

TL;DR

抱歉,现在还没有.为此,可以建议在此位置进行编辑。

这与xsetwacom如何解析您给出的密钥有关。如果您没有指定按下(+)或释放(-),并且您要绑定的键不是修饰符键,它假设您只想按一次键。在设置绑定之后,我们可以通过研究设备的属性来看到这一点。我们可以在xsetwacom -s --get "Wacom Cintiq 13HD touch Pad pad"上看到这一点。它产生的输出如下:

代码语言:javascript
复制
Property 'Wacom Tablet Area' does not exist on device.
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "Button" "1" "key +XF86Finance -XF86Finance "
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "Button" "2" "+XF86WWW -XF86WWW "
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "Button" "3" "+Control_L +s -s "
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "Button" "8" "+bracketright -bracketright "
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "Button" "9" "+bracketleft "
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "Button" "10" "+Control_L +y -y "
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "Button" "11" "+KP_Add -KP_Add "
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "Button" "12" "+Control_L +z -z "
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "Button" "13" "+KP_Subtract -KP_Subtract "
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "ToolDebugLevel" "0"
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "TabletDebugLevel" "0"
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "Suppress" "2"
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "RawSample" "4"
Property 'Wacom Pressurecurve' does not exist on device.
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "Mode" "Absolute"
Property 'Wacom Hover Click' does not exist on device.
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "Touch" "off"
Property 'Wacom Hardware Touch Switch' does not exist on device.
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "Gesture" "off"
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "ZoomDistance" "0"
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "ScrollDistance" "0"
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "TapTime" "250"
Property 'Wacom Proximity Threshold' does not exist on device.
Property 'Wacom Rotation' does not exist on device.
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "RelWheelUp" "1" "button +5 "
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "RelWheelDown" "2" "+4 "
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "AbsWheelUp" "3" "+4 "
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "AbsWheelDown" "4" "+5 "
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "AbsWheel2Up" "5" "+4 "
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "AbsWheel2Down" "6" "+5 "
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "StripLeftUp" "1" "+4 "
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "StripLeftDown" "2" "+5 "
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "StripRightUp" "3" "+4 "
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "StripRightDown" "4" "+5 "
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "Threshold" "0"
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "BindToSerial" "0"
Property 'Wacom Pressure Recalibration' does not exist on device.

如果我们看看相关的线路

代码语言:javascript
复制
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "Button" "8" "+bracketright -bracketright "

您将看到该按钮绑定到单个键按下,但当您查看按钮12 (我在前面用"key ctrl z“绑定)时:

代码语言:javascript
复制
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "Button" "12" "+Control_L +z -z "

您可以看到修饰符上只有一个加号。如果我们使用所需的键执行此操作,则使用来自设置输出的键标识符,并且只使用按下命令,如下所示:

代码语言:javascript
复制
xsetwacom set "Wacom Cintiq 13HD touch Pad pad" "Button" "8" "key +bracketright "

然后按住按钮会导致按键被按下并按住。

备注:

您可以传递xinput而不是设备的名称。xsetwacom --list devices将为您提供id,但请记住,下次系统启动时,号码可能不一样。

回显命令中的-s可以输出bash命令,将属性设置为当前值。如果没有-s,该命令将为您提供xorg.conf文件中设置属性为当前值所需的内容,显然,不能列出按钮绑定。

票数 4
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/364892

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档