diff options
Diffstat (limited to 'ags/config.js')
| -rw-r--r-- | ags/config.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ags/config.js b/ags/config.js new file mode 100644 index 0000000..c31e44d --- /dev/null +++ b/ags/config.js @@ -0,0 +1,15 @@ +const { speaker } = await Service.import("audio") + +const child = Widget.Slider({ + value: speaker.bind("volume"), + onChange: ({ value }) => speaker.volume = value, +}) + +const Bar = () => Widget.Window({ + name: 'bar', + anchor: ['top', 'left', 'right'], + child: child, +}) + +App.config({ windows: [Bar()] }) + |
