I don't believe you can make a custom bar in macaroon to do that atm. but I am pretty certain if coded in to macaroon, have the addon look for events and when they trigger make Macaroon conditional for it true
not actual code, more a way of thinking
Code:
local buffdebuff = GetBuffName()
while buffdebuff == true do
if M.CustomState = [buff:<buffdebuff>] then
state [buff:<buffdebuff>] = true
end
end
and thus enabling us with a buff/debuff state.
I am certain Macaroon can create it's own states and I'm also pretty sure Maul could write the code to have a gui for end user creation of Macaroon states.
Only trouble is time and if Blizz would allow it or not.