Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Scroll on non-scrollwheel devices
Just install mouseemu by:
sudo apt-get install mouseemu
and edit "/etc/default/mouseemu" and add the line:
SCROLL="-scroll 56"
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment