2024-01-01 21:29:18 -05:00
|
|
|
import { Widget } from '../import.js';
|
|
|
|
import { Time } from './widgets/time.js'
|
2024-01-03 17:08:17 -05:00
|
|
|
import { nixosLogo } from './widgets/images/image.js';
|
|
|
|
import { Media } from './widgets/music.js';
|
|
|
|
import { Workspaces } from './widgets/hyprland.js';
|
2024-01-01 21:29:18 -05:00
|
|
|
|
|
|
|
const Start = () => Widget.Box({
|
|
|
|
hpack: "start",
|
2024-01-03 14:10:19 -05:00
|
|
|
children: [
|
2024-01-03 17:08:17 -05:00
|
|
|
nixosLogo(),
|
|
|
|
Workspaces(),
|
2024-01-03 14:10:19 -05:00
|
|
|
]
|
2024-01-03 17:08:17 -05:00
|
|
|
});
|
2024-01-01 21:29:18 -05:00
|
|
|
const Center = () => Widget.Box({
|
2024-01-03 17:08:17 -05:00
|
|
|
children: [
|
|
|
|
Media(),
|
|
|
|
]
|
|
|
|
});
|
2024-01-01 21:29:18 -05:00
|
|
|
const End = () => Widget.Box({
|
|
|
|
hpack: "end",
|
|
|
|
children: [
|
2024-01-03 17:08:17 -05:00
|
|
|
Time(),
|
2024-01-01 21:29:18 -05:00
|
|
|
]
|
2024-01-03 17:08:17 -05:00
|
|
|
});
|
2024-01-01 21:29:18 -05:00
|
|
|
|
|
|
|
const Bar = (monitor) => Widget.Window({
|
|
|
|
monitor,
|
2024-01-03 17:08:17 -05:00
|
|
|
name: `bar`,
|
2024-01-01 21:29:18 -05:00
|
|
|
anchor: ['top', 'left', 'right'],
|
|
|
|
exclusivity: 'exclusive',
|
|
|
|
child: Widget.CenterBox({
|
|
|
|
startWidget: Start(),
|
|
|
|
centerWidget: Center(),
|
|
|
|
endWidget: End(),
|
|
|
|
}),
|
2024-01-03 17:08:17 -05:00
|
|
|
});
|
2024-01-01 21:29:18 -05:00
|
|
|
|
|
|
|
export {
|
|
|
|
Bar
|
2024-01-03 17:08:17 -05:00
|
|
|
}
|