mirror of https://github.com/lcpz/lain.git
Merge pull request #56 from wooparadog/volumn-for-human
Show more human ear friendly volumn in alsa and alsabar widgets
This commit is contained in:
commit
0f35771a52
|
@ -29,7 +29,7 @@ local function worker(args)
|
||||||
alsa.widget = wibox.widget.textbox('')
|
alsa.widget = wibox.widget.textbox('')
|
||||||
|
|
||||||
function alsa.update()
|
function alsa.update()
|
||||||
local f = assert(io.popen('amixer get ' .. channel))
|
local f = assert(io.popen('amixer -M get ' .. channel))
|
||||||
local mixer = f:read("*all")
|
local mixer = f:read("*all")
|
||||||
f:close()
|
f:close()
|
||||||
|
|
||||||
|
|
|
@ -115,7 +115,7 @@ local function worker(args)
|
||||||
|
|
||||||
function alsabar.update()
|
function alsabar.update()
|
||||||
-- Get mixer control contents
|
-- Get mixer control contents
|
||||||
local f = io.popen("amixer get " .. alsabar.channel)
|
local f = io.popen("amixer -M get " .. alsabar.channel)
|
||||||
local mixer = f:read("*all")
|
local mixer = f:read("*all")
|
||||||
f:close()
|
f:close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue