Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mouse scroll support #814

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

quintenroets
Copy link

This PR resolves #544

the scroll button can now be remapped as follows:

[main]
mouse1 = layer(buttons)

[buttons]
scrolldown = C-tab
scrollup = C-S-tab

When no mapping is specified, the behavior defaults to normal scrolling.

@quintenroets quintenroets force-pushed the support-scroll-mapping branch from bef343e to a7e3bd3 Compare August 26, 2024 00:41
@hisbvdis
Copy link

hisbvdis commented Sep 6, 2024

@quintenroets , I tried to build your version from your repository. Unfortunatelly, it didn't work.
Bun I'm newbie and maybe I did something wrong

@quintenroets
Copy link
Author

@quintenroets , I tried to build your version from your repository. Unfortunatelly, it didn't work. Bun I'm newbie and maybe I did something wrong

@hisbvdis are you able to build the main repository from source? https://github.com/rvaiya/keyd?tab=readme-ov-file#from-source

@kevinfiol
Copy link

kevinfiol commented Dec 11, 2024

Thanks, this worked great for me on Debian Bookworm w/ Wayland, with the exception that sudo keyd monitor does not show when I move my scroll wheel up/down.

These were the steps I followed:

git clone -b support-scroll-mapping https://github.com/quintenroets/keyd.git
cd keyd
make
sudo make install
sudo systemctl enable keyd && sudo systemctl start keyd

Then added my configuration in the default conf file w/ sudo nano /etc/keyd/default.conf. My config is for controlling my system volume via hotkeys defined in GNOME keyboard shortcuts:

[ids]
*

[main]
mouse1 = layer(volume)

[volume]

scrolldown = macro(leftmeta+kpminus)
scrollup = macro(leftmeta+kpplus)

After which, I ran sudo keyd reload and it worked as expected. Great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mouse scroll support
3 participants