How to set awesome's wibox visible only for certain tags?

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?

Here is Solutions:

We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.

Solution 1

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.

Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply