JMA*_*MAA 9 mouse mouse-scroll graphics-tablet
所以我最近买了一个 Wacom Bamboo Pen 绘图板,非常棒。我一直在尝试将它用作 14.04 笔记本电脑上的通用鼠标。唯一的烦恼是滚动。平板没有滚轮和滚动按钮,移动到屏幕上的滚动条真的很烦人。
我记得在使用 Windows 时,您可以单击鼠标中键来“自动滚动”,这对于平板电脑来说会很棒——这正是我想要的那种解决方案。但是,我无法终生研究如何在 Ubuntu 上在系统范围内实现此功能。
我知道有 Chrome 和 Firefox 扩展/选项可以为这些浏览器启用此功能,但我喜欢系统范围内的东西。我知道在 Linux 上单击中键“应该是”复制/粘贴,但是当我使用 Ctrl+C/VI 时,真的不需要另一个剪贴板,我需要的是轻松滚动。
使用图形输入板进行简单滚动的任何其他解决方案也将不胜感激。也许是键盘快捷键?
小智 17
我想在我的 wacom 中启用滚动/平移操作,就像我们在 Windows 中通过按下鼠标中键并上下移动鼠标一样。去做这个:
xsetwacom --list devices以下设备的设备:$ xsetwacom --list devices
Wacom Intuos S Pen stylus id: 14 type: STYLUS
Wacom Intuos S Pen eraser id: 15 type: ERASER
Wacom Intuos S Pen cursor id: 16 type: CURSOR
Wacom Intuos S Pad pad id: 17 type: PAD
Run Code Online (Sandbox Code Playgroud)
xsetwacom --set "Wacom Intuos S Pen stylus" Button 2 "pan"
Run Code Online (Sandbox Code Playgroud)
要进行测试,请转到浏览器或任何其他文档,在单击笔按钮 2 的同时向上/向下/向左/向右拖动笔。
为了提高灵敏度,我减小了"PanScrollThreshold"参数的值(默认值为 1300)
xsetwacom --set "Wacom Intuos S Pen stylus" "PanScrollThreshold" 200
参考:
您可以使用xsetwacom重新定义手写笔的按键。使用以下方法识别手写笔xsetwacom --list devices
Wacom Serial Penabled Touchscreen stylus id: 15 type: STYLUS
Wacom Serial Penabled Touchscreen eraser id: 16 type: ERASER
Run Code Online (Sandbox Code Playgroud)
并绑定您想要用于滚动的按钮(在我的例子中,按钮位于笔的 2/3,按钮 2)
xsetwacom set "Wacom Serial Penabled Touchscreen stylus" Button 2 2
Run Code Online (Sandbox Code Playgroud)
设备名称字符串后的第一个值是 Button 的名称,即 Button 2(带空格),第二个值“2”是鼠标中键的 X11 按钮编号,另请参见man xsetwacom。
小智 1
作为 Wacom 平板电脑的所有者,我决定制作一个自动滚动实用程序。它仅适用于基于 X11 的桌面环境(因此没有 Wayland + Gnome)。
\n\n配置示例:
\n\n# Use `xinput list` to get device list. Wacom Bamboo registers 4\n# devices. The relevant one is called "Wacom Bamboo Pen stylus". But\n# there is nothing wrong with grabbing all 4 of them, which is why I use\n# "Wacom" filter to catch them all. `_grep` part comes from the fact\n# that the program is just running `xinput list | grep ${xinput_grep}`.\nxinput_grep = "Wacom"\n\n# Windows-like auto-scrolling. Press `button_id` to start scrolling,\n# then move your mouse up or down. The longer the distance between the\n# cursor and the starting point, the faster you scroll. Remove/comment\n# out whole section if you don\'t want it.\n[scroll]\n# `hold = false` means click once to enable, click once to disable.\n# Recommended `false` on tablets, as it\'s annoying when you connectivity\n# while using `hold = true`.\nhold = false\n# Scrolling speed. Has different effect on different screen resolutions.\n# Recommended to set `speed` to high value and decrease system-wide\n# scrolling speed as much as possible. Equation: `speed`\xc3\x97`distance`[px]\n# \xc3\xb71_000_000_000 = emulated mouse wheel rolls.\nspeed = 1000000\n# Which button toggles scrolling. Button 2 is the middle mouse button.\n# Button 3 is upper button on Wacom Bamboo Pen.\nbutton_id = 3\nRun Code Online (Sandbox Code Playgroud)\n