pulseaudio: cmd switch from grep to sed #168

This commit is contained in:
copycat-killer 2016-02-21 14:45:46 +01:00
parent eb961497d3
commit 4d664adc01
2 changed files with 3 additions and 2 deletions

View File

@ -25,7 +25,8 @@ local function worker(args)
local settings = args.settings or function() end
pulseaudio.sink = args.sink or 0 -- user defined or first one
pulseaudio.cmd = args.cmd or string.format("pacmd list-sinks | grep -e 'index: %d' -e 'volume:' -e 'muted'", pulseaudio.sink)
pulseaudio.cmd = args.cmd or string.format("pacmd list-sinks | sed -n -e '/base volume/d' -e '/index: %d/p' -e '/volume:/p' -e '/muted:/p' | sed -n -e '/index: %d/,+2p'",
pulseaudio.sink, pulseaudio.sink)
pulseaudio.widget = wibox.widget.textbox('')
function pulseaudio.update()

2
wiki

@ -1 +1 @@
Subproject commit f1868c31feab78b1898998407a597e3c06ee71ba
Subproject commit 22e0d07b582caf059aa4dd856cf213f7c027a282