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/CADrRWNYi9MmgATHXBdYOFqyX04u_EVFQGECyvtTWR4m3xHGEaw%40mail.gmail.com.
