Skip to content

Instantly share code, notes, and snippets.

@phackwer
Last active February 13, 2020 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phackwer/5207d76b189794d68fe37401d046b742 to your computer and use it in GitHub Desktop.
Save phackwer/5207d76b189794d68fe37401d046b742 to your computer and use it in GitHub Desktop.
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