Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

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?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

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
end)

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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