mirror of https://github.com/lcpz/lain.git
pulseaudio: cmd switch from grep to sed #168
This commit is contained in:
parent
eb961497d3
commit
4d664adc01
|
@ -25,7 +25,8 @@ local function worker(args)
|
||||||
local settings = args.settings or function() end
|
local settings = args.settings or function() end
|
||||||
|
|
||||||
pulseaudio.sink = args.sink or 0 -- user defined or first one
|
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('')
|
pulseaudio.widget = wibox.widget.textbox('')
|
||||||
|
|
||||||
function pulseaudio.update()
|
function pulseaudio.update()
|
||||||
|
|
2
wiki
2
wiki
|
@ -1 +1 @@
|
||||||
Subproject commit f1868c31feab78b1898998407a597e3c06ee71ba
|
Subproject commit 22e0d07b582caf059aa4dd856cf213f7c027a282
|
Loading…
Reference in New Issue