From 624a0c9f020fbf81d982829b6d770dfb691c86b8 Mon Sep 17 00:00:00 2001 From: Maxim Gordeev Date: Thu, 25 Feb 2016 07:54:50 +0300 Subject: [PATCH] Default value for scallback is nil --- widgets/pulseaudio.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/pulseaudio.lua b/widgets/pulseaudio.lua index d243b8d..4f05779 100644 --- a/widgets/pulseaudio.lua +++ b/widgets/pulseaudio.lua @@ -23,7 +23,7 @@ local function worker(args) local args = args or {} local timeout = args.timeout or 5 local settings = args.settings or function() end - local scallback = args.scallback or function() end + local scallback = args.scallback or nil pulseaudio.sink = args.sink or 0 -- user defined or first one 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'", -- 2.39.2