-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
[BUG] Volume control actually does not change the volume #258
Comments
You need either def set_volume(percent):
if nwg_panel.common.commands["pamixer"]:
subprocess.call("pamixer --set-volume {}".format(percent).split())
elif nwg_panel.common.commands["pactl"]:
subprocess.call("pactl set-sink-volume 0 {}%".format(percent).split())
else:
eprint("Couldn't set volume, no 'pamixer' or 'pactl' found") |
I have pactl but when I run this command in the terminal the slider in nwg-panel changed but the volume doesn't. I guess this has nothing todo with nwg-panel then |
Yes, it must be a problem with your system. |
It on the terminal works when I use the sink 1 like this: So apparently my system has a sink 0 that isn't used. |
Describe the bug
When I raise or lower the volume in the panel the actual volume of the sound output does not change.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Volume changes
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Gentoo
hyprland 0.30.0
nwg-panel version 0.9.14
Additional context
I guess I am just missing a program to change the volume programmatically. But I don't know which. I don't use pulseaudio an my system, only pipewire. So which is nwg-panel using in this case?
The text was updated successfully, but these errors were encountered: