首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >更改ID的wacom tablet的udev规则

更改ID的wacom tablet的udev规则
EN

Unix & Linux用户
提问于 2021-01-04 23:49:05
回答 1查看 301关注 0票数 0

我很难在manjaro安装上配置我的wacom平板电脑上的按钮。

最后,我使用了这个答案来实现它的工作,但是它只在一些时候起作用,因为当我再次插入平板时,手写笔和笔in有时会改变。

下面是实际更改按钮设置的shell脚本的内容:

代码语言:javascript
复制
#!/usr/bin/env bash

sleep 1
export XAUTHORITY=/home/mashpoe/.Xauthority
export DISPLAY=:0

# the IDs will randomly change so the next commands won't work

# sets button 3 for the stylus
xsetwacom set 15 Button 3 "key e"

# sets each button for the pad
xsetwacom set 16 Button 1 "key +ctrl z -ctrl"
xsetwacom set 16 Button 2 "key +ctrl +shift z -ctrl -shift"
xsetwacom set 16 Button 3 "key +ctrl - -ctrl"
xsetwacom set 16 Button 8 "key +ctrl +shift + -ctrl -shift"
EN

回答 1

Unix & Linux用户

发布于 2022-06-06 10:19:07

对于未来的读者来说,这是可行的。

代码语言:javascript
复制
xsetwacom --set "Wacom One by Wacom M Pen stylus" TabletPCButton on
票数 1
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

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

复制
相关文章

相似问题

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