Firstly, what's the issue with restarting qtile? If you really want to do this, you'd need to remove the old widget from the bar's list of widgets, create a new widget, add it to the list and then redraw the bar. That may work.
Have a look at the widgetbox widget's toggle_widgets method. That adds and removes things from the bar so may give you some pointers. On Fri, 9 Apr 2021, 07:24 ktimespi, <[email protected]> wrote: > Any other way I can go about this? > On Friday, April 9, 2021 at 11:33:42 AM UTC+5:30 elParaguayo wrote: > >> Well, you set the colours in your config file which initialises the >> widgets when it's read. >> >> On that basis, I can't immediately see a way to do this without >> restarting qtile. >> >> On Fri, 9 Apr 2021, 07:00 ktimespi, <[email protected]> wrote: >> >>> There's no problem per se. I just want to refresh color schemes that I'm >>> reading from a file. >>> >>> On Friday, April 9, 2021 at 10:47:01 AM UTC+5:30 elParaguayo wrote: >>> >>>> What's the problem that means they need to be reloaded? >>>> >>>> On Fri, 9 Apr 2021, 05:43 ktimespi, <[email protected]> wrote: >>>> >>>>> Just as above. Is it possible to reload widgets without calling >>>>> qtile.restart() or lazy.restart()? >>>>> >>>>> I've tried reassigning the screens list, but nothing happens. >>>>> >>>>> -- >>>>> 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/f9c9471e-eb63-4a5c-8d2f-655a29c1ac01n%40googlegroups.com >>>>> <https://groups.google.com/d/msgid/qtile-dev/f9c9471e-eb63-4a5c-8d2f-655a29c1ac01n%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> >>>> -- >>> 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/92b4de50-99a4-4045-8d9b-65954323622cn%40googlegroups.com >>> <https://groups.google.com/d/msgid/qtile-dev/92b4de50-99a4-4045-8d9b-65954323622cn%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- > 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/1a543ebe-5823-4455-b8c1-88496395363dn%40googlegroups.com > <https://groups.google.com/d/msgid/qtile-dev/1a543ebe-5823-4455-b8c1-88496395363dn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CADPQLhAitjX0dOxWOOwYf594zHtQkGHnUFcsujkZtDbrxUEMVQ%40mail.gmail.com.
