nixos-configs/config/ags/js/bar/bar.js

74 lines
1.4 KiB
JavaScript
Raw Normal View History

2023-09-04 22:27:34 -04:00
const { Window, CenterBox, Box } = ags.Widget;
import { Separator } from '../common.js';
import { CurrentWindow } from './current-window.js';
import { Workspaces } from './workspaces.js';
import { OskToggle } from './osk-toggle.js';
import { Heart } from './heart.js';
import { TabletToggle } from './tablet-toggle.js';
2023-09-05 14:04:19 -04:00
import { QsToggle } from './quick-settings.js';
2023-09-05 15:10:25 -04:00
import { NotifButton } from './notif-button.js';
2023-09-05 19:57:34 -04:00
import { Clock } from './clock.js';
import { SysTray } from './systray.js';
import { Batt } from './battery.js';
2023-09-04 22:27:34 -04:00
export const Bar = Window({
name: 'bar',
2023-09-04 22:27:34 -04:00
layer: 'overlay',
anchor: 'top left right',
exclusive: true,
child: CenterBox({
className: 'transparent',
halign: 'fill',
2023-09-05 19:57:34 -04:00
style: 'margin: 5px',
2023-09-04 22:27:34 -04:00
vertical: false,
startWidget: Box({
halign: 'start',
children: [
2023-09-04 22:27:34 -04:00
OskToggle,
2023-09-04 22:27:34 -04:00
Separator(12),
2023-09-04 22:27:34 -04:00
TabletToggle,
2023-09-04 22:27:34 -04:00
Separator(12),
2023-09-04 22:27:34 -04:00
Heart,
2023-09-04 22:27:34 -04:00
Separator(12),
SysTray,
Separator(12),
2023-09-04 22:27:34 -04:00
Workspaces,
2023-09-04 22:27:34 -04:00
],
}),
2023-09-04 22:27:34 -04:00
centerWidget: CurrentWindow,
endWidget: Box({
halign: 'end',
children: [
Batt,
Separator(12),
Clock,
2023-09-05 19:22:54 -04:00
Separator(12),
2023-09-05 19:22:54 -04:00
NotifButton,
2023-09-05 15:10:25 -04:00
Separator(12),
2023-09-05 15:10:25 -04:00
QsToggle,
],
}),
2023-09-04 22:27:34 -04:00
}),
});