X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/a5b05fa47994ab1c7b15d59b24fb3f5aa2abd877..12f0258dc82b8a1affa3a32549d3aabc62f6cada:/widget/alsabar.lua?ds=sidebyside diff --git a/widget/alsabar.lua b/widget/alsabar.lua index fb9c2e4..81fbe29 100644 --- a/widget/alsabar.lua +++ b/widget/alsabar.lua @@ -107,11 +107,11 @@ local function factory(args) function alsabar.notify() alsabar.update(function() local preset = alsabar.notification_preset + + preset.title = string.format("%s - %s%%", alsabar.channel, alsabar._current_level) if alsabar._playback == "off" then - preset.title = string.format("%s - Muted", alsabar.channel) - else - preset.title = string.format("%s - %s%%", alsabar.channel, alsabar._current_level) + preset.title = preset.title .. " Muted" end int = math.modf((alsabar._current_level / 100) * awful.screen.focused().mywibox.height)