X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/a99a67608e1a1aa3e8b11fbe0ff2b094a4cb0c1c..d070b7bd356a3e797adf17443269904e379387ca:/widget/pulsebar.lua diff --git a/widget/pulsebar.lua b/widget/pulsebar.lua index 8914a4e..12f2565 100644 --- a/widget/pulsebar.lua +++ b/widget/pulsebar.lua @@ -1,10 +1,9 @@ - --[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2013, Rman - + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2013, Rman + --]] local helpers = require("lain.helpers") @@ -119,10 +118,10 @@ local function factory(args) 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)