Skip to content
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

Using amixer sometimes causes left and right audio channels to desync in volume #315

Open
lynx-xdg opened this issue Dec 12, 2024 · 1 comment

Comments

@lynx-xdg
Copy link

When changing the audio volume with amixer sometimes the left and right audio channels desync. I'd reccommend switching from amixer to something like pactl.

@lynx-xdg
Copy link
Author

The volume control section can be replaced with something like:

awful.key({ altkey }, "KP_Add", function()
	os.execute(string.format("pactl set-sink-volume 0 +1%%"))
	beautiful.volume.update()
end, { description = "volume up", group = "hotkeys" }),
awful.key({ altkey }, "KP_Subtract", function()
	os.execute(string.format("pactl set-sink-volume 0 -1%%"))
	beautiful.volume.update()
end, { description = "volume down", group = "hotkeys" }),
awful.key({ altkey }, "m", function()
	os.execute(string.format("pactl set-sink-mute 0 toggle"))
	beautiful.volume.update()
end, { description = "toggle mute", group = "hotkeys" }),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant