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