X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/a99a67608e1a1aa3e8b11fbe0ff2b094a4cb0c1c..4785632d857a5426352b90214b7152427d9effaa:/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)