X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/7d431ef9c41f66e885dbace27e0843395940f1bd..b8adf932213faa797fcd69df28bb8bf9451cf5df:/widgets/pulsebar.lua diff --git a/widgets/pulsebar.lua b/widgets/pulsebar.lua index fc2951b..7f22642 100644 --- a/widgets/pulsebar.lua +++ b/widgets/pulsebar.lua @@ -156,6 +156,7 @@ local function worker(args) end), awful.button({}, 2, function() awful.util.spawn(string.format("pactl set-sink-volume %d 100%%", pulsebar.sink)) + pulsebar.update() end), awful.button({}, 3, function() awful.util.spawn(string.format("pactl set-sink-mute %d toggle", pulsebar.sink)) @@ -178,4 +179,4 @@ local function worker(args) return pulsebar end -eturn setmetatable(pulsebar, { __call = function(_, ...) return worker(...) end }) +return setmetatable(pulsebar, { __call = function(_, ...) return worker(...) end })