snowflake/home/ags/config/js/main.js
notohh a9626cfd89
All checks were successful
flake check / check (push) Successful in 9m47s
fmt check / check (push) Successful in 1m14s
ags: updates
2024-01-03 17:08:17 -05:00

41 lines
812 B
JavaScript

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