aboutsummaryrefslogtreecommitdiff
path: root/ags/config.js
blob: c31e44d940703126263923b0918de362283e7e10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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()] })