X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/a776679884b5d5f6ea026cc215d262b036f6b8b5..c043bc1059a644e5a59a314890db88f8d9ed3d48:/widgets/alsabar.lua?ds=sidebyside diff --git a/widgets/alsabar.lua b/widgets/alsabar.lua index 4430e76..96d57b0 100644 --- a/widgets/alsabar.lua +++ b/widgets/alsabar.lua @@ -77,12 +77,10 @@ function alsabar.notify() alsabar._notify = naughty.notify ({ replaces_id = alsabar._notify.id, preset = preset, - screen = client.focus and client.focus.screen or 1 }) else alsabar._notify = naughty.notify ({ preset = preset, - screen = client.focus and client.focus.screen or 1 }) end end @@ -115,8 +113,8 @@ local function worker(args) function alsabar.update() -- Get mixer control contents - local f = io.popen("amixer get " .. alsabar.channel) - local mixer = f:read("*all") + local f = io.popen("amixer -M get " .. alsabar.channel) + local mixer = f:read("*a") f:close() -- Capture mixer control state: [5%] ... ... [on]