This commit is contained in:
Benjamin Palko 2024-07-16 00:01:48 -04:00
parent 4f6a0c34d5
commit 6f25d234c3
8 changed files with 253 additions and 0 deletions

26
ags/config.js Normal file
View file

@ -0,0 +1,26 @@
const time = Variable('', {
poll: [1000, function() {
return Date().toString()
}],
})
const Bar = (/** @type {number} */ monitor) => Widget.Window({
monitor,
name: `bar${monitor}`,
anchor: ['top', 'left', 'right'],
exclusivity: 'exclusive',
child: Widget.CenterBox({
start_widget: Widget.Label({
hpack: 'center',
label: 'Welcome to AGS!',
}),
end_widget: Widget.Label({
hpack: 'center',
label: time.bind(),
}),
}),
})
App.config({
windows: [Bar(0)],
})