2022-02-22, 01:30
I don't really know of a way to do so (beyond constantly listening for a particular button press, which would have a severe impact on performance. I'm also not sure that this feature would offer any real utility of value for many, if any at all, users.
EDIT: @shaktoo I've decided that there is a relatively easy way to handle this. If you could please test the latest devrepo release (
This is the one I used during testing, and using
For what it's worth the "magic" here is the
EDIT 2: I'm really not sure why the XML is so spaced out like that...
EDIT: @shaktoo I've decided that there is a relatively easy way to handle this. If you could please test the latest devrepo release (
0.0.1524
), it will allow you to call a path that will automatically refresh the widget you're focusing. You can then use that path in a keymap, like so:xml:
<?xml version="1.0" encoding="UTF-8"?>
<keymap>
<home>
<keyboard>
<key id="61536">RunPlugin(plugin://plugin.program.autowidget/?mode=refresh&id=auto)</key>
</keyboard>
</home>
</keymap>
This is the one I used during testing, and using
61536
, I was able to easily refresh widgets by pressing `
on my keyboard while on the home screen. You'll probably need to map some other button code if you're using a remote.For what it's worth the "magic" here is the
id=auto
flag, which will force AW to try and read the widget ID from the widget, similarly to how the "Refresh Widget" context menu action works currently.EDIT 2: I'm really not sure why the XML is so spaced out like that...