Linux: Emulate Scrolling using Mouse plus *Keyboard* Modifier

丶灬走出姿态 提交于 2019-12-10 18:03:43

问题


I would like to emulate scrolling horizontally/vertically by moving my mouse cursor around while holding down a keyboard modifier.

I already know how to do this by assigning EmulateWheel/EmulateWheelButton in xorg.conf... however,

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.

Thank you


回答1:


Maybe I am too late but i just figured out how to do this with mouseemu in ubuntu. Just install mouseemu by:

sudo apt-get install mouseemu

and edit "/etc/default/mouseemu" and add the line:

SCROLL="-scroll 126"

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:

sudo /etc/init.d/mouseemu restart

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.

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.



来源:https://stackoverflow.com/questions/21541140/linux-emulate-scrolling-using-mouse-plus-keyboard-modifier

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!