2023-11-27 15:50:20 -05:00
|
|
|
import { Box, CenterBox, Window } from 'resource:///com/github/Aylur/ags/widget.js';
|
|
|
|
|
2024-01-13 16:07:33 -05:00
|
|
|
import SysTray from '../../wim/ts/bar/items/systray.js';
|
|
|
|
import Separator from '../../wim/ts/misc/separator.js';
|
|
|
|
import NotifButton from '../../wim/ts/bar/items/notif-button.js';
|
2023-11-27 15:50:20 -05:00
|
|
|
import Clock from './buttons/clock.js';
|
|
|
|
|
2023-11-30 14:13:01 -05:00
|
|
|
const PADDING = 20;
|
|
|
|
|
|
|
|
|
2023-11-27 15:50:20 -05:00
|
|
|
export default () => Window({
|
|
|
|
name: 'bar',
|
|
|
|
layer: 'overlay',
|
|
|
|
exclusivity: 'exclusive',
|
|
|
|
anchor: ['bottom', 'left', 'right'],
|
|
|
|
monitor: 1,
|
|
|
|
|
2023-11-30 14:13:01 -05:00
|
|
|
child: Box({
|
|
|
|
vertical: true,
|
|
|
|
children: [
|
|
|
|
CenterBox({
|
2024-01-13 16:07:33 -05:00
|
|
|
class_name: 'bar',
|
2023-11-30 14:13:01 -05:00
|
|
|
start_widget: Box({
|
|
|
|
hpack: 'start',
|
|
|
|
children: [
|
|
|
|
Separator(PADDING),
|
2023-11-30 15:17:57 -05:00
|
|
|
|
2023-11-30 14:13:01 -05:00
|
|
|
SysTray(),
|
|
|
|
],
|
|
|
|
}),
|
2023-11-27 15:50:20 -05:00
|
|
|
|
2023-11-30 14:13:01 -05:00
|
|
|
center_widget: Box({
|
|
|
|
children: [],
|
|
|
|
}),
|
2023-11-27 15:50:20 -05:00
|
|
|
|
2023-11-30 14:13:01 -05:00
|
|
|
end_widget: Box({
|
|
|
|
hpack: 'end',
|
|
|
|
children: [
|
|
|
|
NotifButton(),
|
2024-01-13 16:07:33 -05:00
|
|
|
Separator(PADDING / 2),
|
2023-11-30 14:13:01 -05:00
|
|
|
Clock(),
|
2023-11-30 15:17:57 -05:00
|
|
|
|
2023-11-30 14:13:01 -05:00
|
|
|
Separator(PADDING),
|
|
|
|
],
|
|
|
|
}),
|
|
|
|
}),
|
2024-01-13 16:07:33 -05:00
|
|
|
Separator(PADDING, { vertical: true }),
|
2023-11-30 14:13:01 -05:00
|
|
|
],
|
2023-11-27 15:50:20 -05:00
|
|
|
}),
|
|
|
|
});
|