snowflake/home/ags/config/js/main.js
notohh e192ba705e
All checks were successful
flake check / check (push) Successful in 9m17s
fmt check / check (push) Successful in 1m16s
ags: updates
2024-01-03 14:10:19 -05:00

35 lines
669 B
JavaScript

import { Widget } from '../import.js';
import { Time } from './widgets/time.js'
import { nixosLogo } from './widgets/image.js';
const Start = () => Widget.Box({
hpack: "start",
children: [
nixosLogo()
]
})
const Center = () => Widget.Box({
children: []
})
const End = () => Widget.Box({
hpack: "end",
children: [
Time()
]
})
const Bar = (monitor) => Widget.Window({
monitor,
name: `bar-${monitor}`,
anchor: ['top', 'left', 'right'],
exclusivity: 'exclusive',
child: Widget.CenterBox({
startWidget: Start(),
centerWidget: Center(),
endWidget: End(),
}),
})
export {
Bar
}