nixos-configs/modules/ags/config/ts/bar/binto.ts

51 lines
1.2 KiB
TypeScript
Raw Normal View History

const { Box, CenterBox, Window } = Widget;
2023-11-27 15:50:20 -05:00
import SysTray from './items/systray.ts';
import Separator from '../misc/separator.ts';
import NotifButton from './items/notif-button.ts';
import Clock from './items/clock.ts';
2023-11-27 15:50:20 -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,
child: Box({
vertical: true,
children: [
CenterBox({
class_name: 'bar',
start_widget: Box({
hpack: 'start',
children: [
Separator(PADDING),
SysTray(),
],
}),
2023-11-27 15:50:20 -05:00
center_widget: Box({
children: [],
}),
2023-11-27 15:50:20 -05:00
end_widget: Box({
hpack: 'end',
children: [
NotifButton(),
Separator(PADDING / 2),
Clock(),
Separator(PADDING),
],
}),
}),
Separator(PADDING, { vertical: true }),
],
2023-11-27 15:50:20 -05:00
}),
});