Skip to content

Instantly share code, notes, and snippets.

@brandleesee
Created January 14, 2024 18:50
Show Gist options
  • Select an option

  • Save brandleesee/d9240448e236c09cf6bf608d3530adad to your computer and use it in GitHub Desktop.

Select an option

Save brandleesee/d9240448e236c09cf6bf608d3530adad to your computer and use it in GitHub Desktop.
MPV - Mouse Scroll for Volume
MOUSE_BTN3 add volume 5
MOUSE_BTN4 add volume -5
@brandleesee
Copy link
Author

Binding Mouse Scroll to change volume levels

input.conf file to be placed in /home/$USER/.config/mpv

source: mpv-player/mpv#3602

@ojmjft
Copy link

ojmjft commented Jul 19, 2025

The simple solution! Thank you.
It is surprising how many Linux programs behave variably on different distros.
I have found the default scroll behaviour (no input.conf) is volume on kali but seek on debian, yet one OS is derived from the other!
Mine is not to reason...

@brandleesee
Copy link
Author

You're welcome!
To be honest, I have always found it strange that on Debian the default behaviour is the seek, how shall I put it, I found it unnatural!

@ojmjft
Copy link

ojmjft commented Jul 24, 2025 via email

@brandleesee
Copy link
Author

You are most welcome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment