问题描述
我想通过在按住键盘修饰符的同时移动鼠标光标来模拟水平/垂直滚动.
I would like to emulate scrolling horizontally/vertically by moving my mouse cursor around while holding down a keyboard modifier.
我已经知道如何通过在xorg.conf中分配EmulateWheel/EmulateWheelButton来实现此目的...
I already know how to do this by assigning EmulateWheel/EmulateWheelButton in xorg.conf... however,
我想使用Super作为修饰符而不是鼠标按钮.
what I would like is to use Super as the modifier instead of a mouse button.
可能吗?我整天都在寻找答案.
Possible? I have searched all day for an answer.
谢谢
推荐答案
也许我来不及,但我只是想出了如何在ubuntu中使用mouseemu做到这一点.只需通过以下方式安装mouseemu:
Maybe I am too late but i just figured out how to do this with mouseemu in ubuntu.Just install mouseemu by:
并编辑"/etc/default/mouseemu"并添加以下行:
and edit "/etc/default/mouseemu" and add the line:
126是右超级键的键扫描代码.您可以在终端中使用showkey查找其他键代码.现在重新启动mouseemu:
126 is the key scan code for the right super key. you can find other key codes by using showkey in the terminal.now restart mouseemu:
在ubuntu中,正确的获胜键还会显示快捷方式列表.我还没有弄清楚如何正确禁用它,因为我还使用了右Win键作为撰写键,因此该列表已经被禁用了.
In ubuntu the right win key is also bringing up a list of shortcuts. I have not figured out how to disable that properly, because I also use the right win key as the compose key, so the list is already disabled that way.
mousemu的一个怪异副作用是它弄乱了我键盘上的大写字母/数字/滚动锁定灯并关闭了它们.但是,一旦我了解了为什么它们不起作用,我就有点喜欢.
A weird side effect of mouseemu is it is messing with the caps/num/scroll lock lights on my keyboard and turning them off. But I kind of like that, once I learned why they weren’t working.
这篇关于Linux:使用鼠标加*键盘*修饰符模拟滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!