X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/a5b05fa47994ab1c7b15d59b24fb3f5aa2abd877..12f0258dc82b8a1affa3a32549d3aabc62f6cada:/widget/pulsebar.lua diff --git a/widget/pulsebar.lua b/widget/pulsebar.lua index 8914a4e..83bfe5e 100644 --- a/widget/pulsebar.lua +++ b/widget/pulsebar.lua @@ -118,11 +118,11 @@ local function factory(args) function pulsebar.notify() pulsebar.update(function() local preset = pulsebar.notification_preset + + preset.title = string.format("Sink %s - %s%%", pulsebar.sink, pulsebar._current_level) if pulsebar._mute == "yes" then - preset.title = string.format("Sink %s - Muted", pulsebar.sink) - else - preset.title = string.format("Sink %s - %s%%", pulsebar.sink, pulsebar._current_level) + preset.title = preset.title .. " Muted" end int = math.modf((pulsebar._current_level / 100) * awful.screen.focused().mywibox.height)