Then please go for it. :) On Saturday, 7 November 2020 at 10:57:56 UTC+1 elParaguayo wrote:
> It's a pretty simple edit to the code, I think. I don't currently have the > repository cloned because I'm running the version from the Arch repos but > I'm happy to clone and make a pull request for this. > > I'll need to run against the 0.16.1 tag rather than the latest commit but > assume that's ok. > > On Sat, 7 Nov 2020 at 09:04, tcld <[email protected]> wrote: > >> I have come across this as well. At the moment the widget updates in >> predefined intervals. So if you wait a "little" (mine updates every 15 >> minutes), the display will be changed accordingly. >> >> I'll have a look at the code, maybe the update can be triggered after the >> "execute"-command is finished. >> >> On Thursday, 5 November 2020 at 22:47:53 UTC+1 Justine Smithies wrote: >> >>> Thanks for your reply. A code modification was what I was thinking but >>> wondered if I could avoid that. Possibly not though. >>> >>> On Thu, 5 Nov 2020, 21:36 el Paraguayo, <[email protected]> wrote: >>> >>>> Looking at the code, the button press just runs the "execute" command >>>> but doesn't trigger a refresh of the widget (see: >>>> https://github.com/qtile/qtile/blob/master/libqtile/widget/check_updates.py#L71 >>>> ). >>>> >>>> You could either modify the code in the widget to trigger a refresh or >>>> write a shell script that runs your update command and then refreshes the >>>> widget, and use that shell script in your "execute" field. >>>> >>>> However, I'm not sure how you can trigger the refresh from a shell >>>> script but it feels like it should be possible! >>>> >>>> On Thu, 5 Nov 2020 at 11:08, Justine Smithies <[email protected]> >>>> wrote: >>>> >>>>> Wondering if anyone has an issue with widget.CheckUpdates. I'm using >>>>> Arch with yay and have that set in the distro field and in the custom >>>>> command I have checkuodates+aur which runs fine and shows updates. I have >>>>> kitty -e yay -Syu in the execute field so when I click on the updates bar >>>>> when there are some showing it opens the terminal and updates. The issue >>>>> I >>>>> have is that after this when the terminal window closes it still says the >>>>> updates are available when I think it should re run the >>>>> widget.CheckUpdates >>>>> so it sees none are now available and clears the update widget. >>>>> >>>>> PS I'm loving Qtile and learning a new language at the same time after >>>>> spending a long time jumping from KDE to xfce and back. >>>>> >>>>> Justine >>>>> >>>>> -- >>>>> 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/CADrRWNY2O0NyYDo%2BkNy8%2BR6tYeBm%3DumcxUWbJ_wHdhC4G%2BtXpA%40mail.gmail.com >>>>> >>>>> <https://groups.google.com/d/msgid/qtile-dev/CADrRWNY2O0NyYDo%2BkNy8%2BR6tYeBm%3DumcxUWbJ_wHdhC4G%2BtXpA%40mail.gmail.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/CADPQLhDBoSnp2bXdoONex6SHkBXWxLnhqkOUmUJVDYuSgXpy_A%40mail.gmail.com >>>> >>>> <https://groups.google.com/d/msgid/qtile-dev/CADPQLhDBoSnp2bXdoONex6SHkBXWxLnhqkOUmUJVDYuSgXpy_A%40mail.gmail.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/3fbe80ec-4fbe-482c-a0d2-048ebada2d65n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/qtile-dev/3fbe80ec-4fbe-482c-a0d2-048ebada2d65n%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/d0180bd0-4db0-4946-8b25-52f9dc4b10e2n%40googlegroups.com.
