So i've been trying to set up a system to allow me to change themes on the 
fly, but i ran into some issues.

I came up with this really quick and dirty solution where i simply delete 
the bar entirely and recreate it with new parameters for each widget.
However i can see that at least my custom widget is not actually being 
deleted, but gets duplicated every time i change the theme. I would assume 
that this goes for every widget on the bar.

So what is the "proper way" to redraw the bar along with all it's widgets?

here are links to some of the relevant functions:
The function that creates the bar
https://github.com/Craksy/qtile#create_bar
The function that changes the theme
https://github.com/Craksy/qtile#set_theme
The widget i made that is being duplicated (again im not sure if this goes 
for every widget on the bar)
https://github.com/Craksy/qtile/blob/43012263e1151de02004cfec7e273d0507aed2f3/desktop_widget.py#L65

I have actually been a bit reluctant to share this, because i'm almost 
certain that there is some really obvious solution that i'm just missing, 
and i'm going to feel like a major pleb once i find out. It's also rather 
poorly written.anyway, i hope you guys can help me out here.
Thanks in advance

-- 
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/a624ddf1-6284-40d9-968b-4c2529567300n%40googlegroups.com.

Reply via email to