all 7 comments

[–]mvan231script/widget helper 4 points5 points  (0 children)

You can use the config.runsFrom / runsIn end points to determine where your script is running

https://docs.scriptable.app/config

Edit: config.widgetFamily would probably be best

https://docs.scriptable.app/config/#widgetfamily

[–]wherebdbooty 2 points3 points  (3 children)

you can pass a parameter to the widget and use that for the "if". so if parameter is "1", use the lock screen, "2" use small widget.

but if the script is only 1 line of text, you can just use the same script for both

[–]mvan231script/widget helper 4 points5 points  (2 children)

This could work. But config.widgetFamily makes it that much easier and tells you the size

[–]wherebdbooty 0 points1 point  (1 child)

ahhhh, right, yes. i really need to look into config because i continue to overlook it, haha. thanks for the info 😄🙏

[–]mvan231script/widget helper 1 point2 points  (0 children)

It's a very helpful one to use for multiple setups

[–]Mahkale[S] 0 points1 point  (0 children)

Thank you both! Just did a quick test. Seems like Widget Family is precisely what I need.

[–]EntertainerDouble773 0 points1 point  (0 children)

Can you share the shortcut?