Skip to content

Setting audio via scrolling is broken #1904

@C0rn3j

Description

@C0rn3j

t_dbus.py has this goodie but trying it on my Arch system makes it seem like it does not work:

    def scroll(self, indicator: AppIndicator3.Indicator, steps: int, direction: int) -> None:
        if direction == Gdk.ScrollDirection.UP:
            self.tauon.pctl.player_volume += 4
            self.tauon.pctl.player_volume = min(self.tauon.pctl.player_volume, 100)
            self.tauon.pctl.set_volume()
        if direction == Gdk.ScrollDirection.DOWN:
            if self.tauon.pctl.player_volume > 4:
                self.tauon.pctl.player_volume -= 4
            else:
                self.tauon.pctl.player_volume = 0
            self.tauon.pctl.set_volume()
        self.tauon.gui.update += 1

EDIT: Seems to work on GNOME for Taiko, not for me on Plasma though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedAn issue from another project is preventing this from movingbug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions