I'd like to have special wiboxes for certain tags like multimedia, development. I couldn't find any option in wibox for that.

I think it can be done using some event handlers and show/hide it manually, but isn't it implemented in some module and if not what's the best way to do it?


I don't know about any ready-to-use modules, but I built something like that with event handlers. First you initialize your wibox as usual. Then make it invisible:

your_wibox.visible = false

Then add the signal handler for showing it to the tag(s) on which it should be visible:

your_tag:add_signal("property:selected", function(tag)
        your_wibox.visible = tag.selected

This triggers, whenever the selected property of the tag changes, so the wibox' visibility changes with the visibility of the tag.

I don't think, that putting that into a module could make it much shorter.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.