From 36767762270a9ec0f510e4573e0b40f77597aa32 Mon Sep 17 00:00:00 2001 From: Justin Endacott Date: Tue, 6 Dec 2016 18:40:40 +1000 Subject: [PATCH 1/2] Fix typo in return statement --- widgets/pulsebar.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/pulsebar.lua b/widgets/pulsebar.lua index fc2951b..006515c 100644 --- a/widgets/pulsebar.lua +++ b/widgets/pulsebar.lua @@ -178,4 +178,4 @@ local function worker(args) return pulsebar end -eturn setmetatable(pulsebar, { __call = function(_, ...) return worker(...) end }) +return setmetatable(pulsebar, { __call = function(_, ...) return worker(...) end }) From 7a26917b93ee53ec7ea665cbc557bd476586ced2 Mon Sep 17 00:00:00 2001 From: Justin Endacott Date: Wed, 7 Dec 2016 03:48:18 +1000 Subject: [PATCH 2/2] Update pulsebar after setting volume to 100% --- widgets/pulsebar.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/widgets/pulsebar.lua b/widgets/pulsebar.lua index 006515c..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))