-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a39f62d
commit 635db44
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Variables used by Scriptable. | ||
// These must be at the very top of the file. Do not edit. | ||
// icon-color: orange; icon-glyph: plus-circle; | ||
let widget = await createWidget() | ||
Script.setWidget(widget) | ||
Script.complete() | ||
// widget.presentSmall() | ||
|
||
async function createWidget() { | ||
let widget = new ListWidget() | ||
// load symbol image | ||
let symbolSpeaker = widget.addImage(SFSymbol.named("hifispeaker.2").image) | ||
symbolSpeaker.imageSize = new Size(45,45) | ||
symbolSpeaker.centerAlignImage() | ||
|
||
return widget | ||
} | ||
|
||
// Use this icon in your lock screen and assign a the SonosBot Shortcut to it from the Soro app (which I slightly modified). |