notohh
a9626cfd89
All checks were successful
flake check / check (push) Successful in 9m47s
fmt check / check (push) Successful in 1m14s
40 lines
812 B
JavaScript
40 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
|
|
}
|