Skip to content

Add support for mouse side buttons (back/forward) to control track navigation in mpris module #4131

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

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

Conversation

belcaik
Copy link

@belcaik belcaik commented May 20, 2025

Summary:
This PR adds support for using mouse side buttons (typically buttons 8 and 9, often mapped as "back" and "forward" on high-end mice) to control previous/next track actions in the Waybar mpris module. This allows users to quickly skip tracks using their mouse's extra buttons.

Context:
Related to #1160, which requested support for additional mouse buttons (beyond 0–5) for actions like next/previous track. This PR implements on-click-backward (button 8) and on-click-forward (button 9) as built-in actions, making it easier to control playback with modern mice.

Testing:
Tested on Arch Linux (Wayland) with a Razer mouse.
Please note: Other platforms and mice may need further testing.

Notes:

  • No breaking changes; existing button actions remain unchanged.
  • Custom hooks for these buttons can still be set via config if desired.

belcaik added 3 commits May 19, 2025 22:52
mapped buttons config on-click-backward and on-click-forward on mpris module to previous/next handle
GTK codes are 9 and 8
…ndle

Add mouse navigation support for side buttons in Mpris
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.

1 participant