mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-24 18:58:33 +02:00
volume: use amixer -D pulse
For some reason, without it, it doesn't work anymore, even with ALSA configured to use Pulseaudio.
This commit is contained in:
parent
4267dc2927
commit
af618d1d00
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue