aboutsummaryrefslogtreecommitdiff
path: root/ags
diff options
context:
space:
mode:
Diffstat (limited to 'ags')
-rw-r--r--ags/config.js15
-rw-r--r--ags/config.ts5
-rw-r--r--ags/tsconfig.json2
3 files changed, 16 insertions, 6 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()] })
+
diff --git a/ags/config.ts b/ags/config.ts
deleted file mode 100644
index e3b989c..0000000
--- a/ags/config.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-App.config({
- windows: [
-
- ]
-})
diff --git a/ags/tsconfig.json b/ags/tsconfig.json
index f03f2d1..6860767 100644
--- a/ags/tsconfig.json
+++ b/ags/tsconfig.json
@@ -15,4 +15,4 @@
],
"skipLibCheck": true
}
-} \ No newline at end of file
+}