Easiest way to explain is to show you the config for the above bar:
screens = [
Screen(
top=bar.Bar(
[
widget.CurrentLayoutIcon(),
widget.GroupBox(
highlight_method="line",
this_current_screen_border=palette[1],
urgent_border=palette[3]
),
widget.Prompt(),
widget.WindowName(),
widget.TextBox(text="WidgetBox allows you to declutter your
bar..."),
* widget.WidgetBox(widgets=[*
* widget.TextBox(name="t2", text="Button events
are passed to underlying widgets"),*
*
widget.Image(filename="/home/anto/Documents/scripts/github/qtile/tvh/tvhwidget/tvhlib/icon.svg")]*
* ),*
widget.QuickExit(
default_text="[X]",
countdown_format="[{}]",
countdown_start=2,
),
],
24,
opacity=0.8,
),
),
]
Basically, you just put the widgets that you want to hide in the WidgetBox
when it's created.
I've still got quite a bit of testing to do but, as a proof of concept,
it's looking good so far.
On Sunday, 22 November 2020 at 21:01:41 UTC [email protected] wrote:
> That awesome man! How does it work? Can you choose the widget that you
> want to hide?
>
> On Sunday, November 22, 2020 at 2:58:04 p.m. UTC-5 elParaguayo wrote:
>
>> Just thought I'd share something that I'm working on.
>>
>> WidgetBox (bad name, open to suggestions for improvements) is a widget
>> that can hide widgets on your bar when you don't need them.
>>
>> It looks like this:
>> [image: widgetbox.gif]
>>
>> When the box is closed, the widgets are hidden but, once it's open, they
>> *should* behave as normal (although that's still to be tested as I'm not
>> as familiar with qtile's inner workings!)
>>
>
--
You received this message because you are subscribed to the Google Groups
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/qtile-dev/891b6f9f-e307-4624-8c9a-c58ec931de5an%40googlegroups.com.