dotfiles/.config/ags/config.js
2024-06-14 16:29:18 -05:00

21 lines
417 B
JavaScript

function Bar(monitor = 0) {
const myLabel = Widget.Label({
label: 'some example content',
})
return Widget.Window({
monitor,
name: `bar${monitor}`, // this name has to be unique
anchor: ['top', 'left', 'right'],
child: myLabel,
})
}
App.config({
windows: [
Bar(0), // can be instantiated for each monitor
Bar(1),
Bar(2),
],
})