-
-
Notifications
You must be signed in to change notification settings - Fork 717
feat(pulseaudio): define reverse-scroll option #2664
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
feat(pulseaudio): define reverse-scroll option #2664
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. I didn't know that that's how natural scrolling was implemented, but that actually makes a lot of sense.
Please also add your changes to the changelog: https://github.com/polybar/polybar/blob/master/CONTRIBUTING.md#changelog
src/modules/pulseaudio.cpp
Outdated
@@ -26,6 +26,7 @@ namespace modules { | |||
|
|||
auto sink_name = m_conf.get(name(), "sink", ""s); | |||
bool m_max_volume = m_conf.get(name(), "use-ui-max", true); | |||
m_invert_scroll = m_conf.get(name(), "invert-scroll", false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please call the option reverse-scroll
to be consistent with other modules that also have such an option.
@patrick96, I have renamed the field and added changelog entry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now, thanks!
I went a head and resolved the merge conflicts.
Codecov Report
@@ Coverage Diff @@
## master #2664 +/- ##
==========================================
- Coverage 11.76% 11.76% -0.01%
==========================================
Files 149 149
Lines 11302 11306 +4
==========================================
Hits 1330 1330
- Misses 9972 9976 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
When we enable natural scrolling option in libinput, it sends scroll down event when we swipe up on the touchpad. This makes the pulseaudio module feel weird. This option fixes that.
reverse-scroll was already added as an option to pulseaudio in a2c1392 ("feat(pulseaudio): define reverse-scroll option (polybar#2664)"): > When we enable natural scrolling option in libinput, > it sends scroll down event when we swipe up on the touchpad. > This makes the pulseaudio module feel weird. > This option fixes that.
reverse-scroll was already added as an option to pulseaudio in a2c1392 ("feat(pulseaudio): define reverse-scroll option (polybar#2664)"): > When we enable natural scrolling option in libinput, > it sends scroll down event when we swipe up on the touchpad. > This makes the pulseaudio module feel weird. > This option fixes that. (cherry picked from commit c759b36)
reverse-scroll was already added as an option to pulseaudio in a2c1392 ("feat(pulseaudio): define reverse-scroll option (polybar#2664)"): > When we enable natural scrolling option in libinput, > it sends scroll down event when we swipe up on the touchpad. > This makes the pulseaudio module feel weird. > This option fixes that.
reverse-scroll was already added as an option to pulseaudio in a2c1392 ("feat(pulseaudio): define reverse-scroll option (polybar#2664)"): > When we enable natural scrolling option in libinput, > it sends scroll down event when we swipe up on the touchpad. > This makes the pulseaudio module feel weird. > This option fixes that. (cherry picked from commit c759b36)
What type of PR is this? (check all applicable)
Description
When we enable natural scrolling option in libinput, it sends scroll down even when we swipe up on the touchpad.
This makes the pulseaudio module feel weird.
This option fixes that.
Related Issues & Documents
Documentation (check all applicable)
Add the following to the wiki under Pulseaudio: