-
-
Notifications
You must be signed in to change notification settings - Fork 769
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 scroll bindings for MPRIS module #3965
base: master
Are you sure you want to change the base?
Conversation
3f018ff
to
336d0a8
Compare
I don't really think these new actions make a lot of sense, i.e. I at least would expect scrolling to adjust player volume by default, not tracks. Of course the module doesn't actually have volume support and everything non-default is just forwarded to the generic cmd handler anyway, so the module also already has scrolling support simply by using (Just to rant somewhere, the whole module is actually pretty pointless if you don't like the default binds, cause it's impossible to actually use the MPRIS connection with non-default binds. Having to use generic |
I personally used just a customized script only because of the possibility to bind the mouse wheel. I think it's much more comfortable and logical to change the track than using middle and right mouse button. Binding the mouse wheel is not possible without this change. I guess it should be possible to bind all mouse actions for all waybar modules in general. At least there is no argument against that. playerctl supports to change the player volume. Or we could even implement functionality to switch between focused and displayed players. See playerctld's |
But I'm saying it is possible and I'm already using it exactly like this on v0.12.0:
My point still being that I don't want to use |
Fair enough, it works for me now too. I guess I just used an old version, when I tried it before writing this patch. About the playerctl: I just extended the already existing code. I didn't want to reinvent the wheel. There are pros and contras implementing MPRIS with playerctl in between. But I think that this PR is the wrong place to discuss the sense of the module. To be honest. After I saw the source code of this module, I'm thinking that writing a bash script at my own will be faster than implementing missing functionality. But I think that not everybody wants to reinvest the wheel. |
In the end this change will only add default bindings to the mouse wheel. IMHO it doesn't need to be merged. |
I'll probably work on getting actual rebindable mpris commands soon-ish, with player volume available for formatting too. Getting the % on the bar is even more important to me than scrolling, but of course it isn't in the scope of this pr... |
This add the following bindings:
This fixes #3641.