nixos-configs/devices/binto/config/ags/ts/bar/main.ts
matt1432 d3bb06a370
All checks were successful
Discord / discord commits (push) Has been skipped
refactor(ags binto): switch to typescript
2024-01-13 16:07:33 -05:00

50 lines
1.3 KiB
TypeScript

import { Box, CenterBox, Window } from 'resource:///com/github/Aylur/ags/widget.js';
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';
import Clock from './buttons/clock.js';
const PADDING = 20;
export default () => Window({
name: 'bar',
layer: 'overlay',
exclusivity: 'exclusive',
anchor: ['bottom', 'left', 'right'],
monitor: 1,
child: Box({
vertical: true,
children: [
CenterBox({
class_name: 'bar',
start_widget: Box({
hpack: 'start',
children: [
Separator(PADDING),
SysTray(),
],
}),
center_widget: Box({
children: [],
}),
end_widget: Box({
hpack: 'end',
children: [
NotifButton(),
Separator(PADDING / 2),
Clock(),
Separator(PADDING),
],
}),
}),
Separator(PADDING, { vertical: true }),
],
}),
});