X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/56a603ef28d447ad966ffa0be07f3ea30ee3d765..d070b7bd356a3e797adf17443269904e379387ca:/widget/pulsebar.lua?ds=inline 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)