X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/0f35771a5267edc09d62788c3d3b7808d83d52c1..724eaa3ad77cab7f229c405d046dcebeab6552ab:/widgets/alsabar.lua diff --git a/widgets/alsabar.lua b/widgets/alsabar.lua index e185c76..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 @@ -116,7 +114,7 @@ local function worker(args) function alsabar.update() -- Get mixer control contents local f = io.popen("amixer -M get " .. alsabar.channel) - local mixer = f:read("*all") + local mixer = f:read("*a") f:close() -- Capture mixer control state: [5%] ... ... [on]