From af618d1d004b7fa161b2beb9e146e2d9318f7229 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 10 Nov 2018 00:20:16 +0100 Subject: [PATCH] volume: use amixer -D pulse For some reason, without it, it doesn't work anymore, even with ALSA configured to use Pulseaudio. --- lib/volume.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/volume.lua b/lib/volume.lua index c293fac..fa2041e 100644 --- a/lib/volume.lua +++ b/lib/volume.lua @@ -14,9 +14,9 @@ module("vbe/volume") local volid = nil local function change(what) - os.execute("amixer -q sset Master " .. what, false) + os.execute("amixer -q -D pulse sset Master " .. what, false) -- Read the current value - local out = awful.util.pread("amixer sget Master") + local out = awful.util.pread("amixer -D pulse sget Master") local vol, mute = out:match("([%d]+)%%.*%[([%l]*)") if not mute or not vol then return end