How can I implement a function so that pressing a key toggles between hiding & showing the wibox?

I've found this answer but either the code doesn't work anymore or I'm not implementing it right.

The code from the Arch wiki doesn't work either. I'm not familiar with lua so maybe I'm just implementing it really wrong and it's not just a matter of copy & paste.

1 Answer 1


I want correct myself, the code from the Arch Wiki works perfectly fine, the only caveat is that you need to include that code inside the globalkeys array. Now is working as intended.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .