2023-09-04 22:27:34 -04:00
|
|
|
const { Window, CenterBox, Box } = ags.Widget;
|
|
|
|
|
2023-09-04 22:34:33 -04:00
|
|
|
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';
|
2023-09-05 13:25:32 -04:00
|
|
|
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';
|
2023-09-06 17:36:26 -04:00
|
|
|
import { SysTray } from './systray.js';
|
|
|
|
import { BatteryLabel } from './battery.js';
|
2023-09-04 22:27:34 -04:00
|
|
|
|
|
|
|
export const Bar = Window({
|
|
|
|
name: 'left-bar',
|
|
|
|
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,
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
// Left
|
|
|
|
Box({
|
|
|
|
halign: 'start',
|
|
|
|
children: [
|
|
|
|
|
|
|
|
OskToggle,
|
|
|
|
|
|
|
|
Separator(12),
|
|
|
|
|
2023-09-04 22:34:33 -04:00
|
|
|
TabletToggle,
|
2023-09-04 22:27:34 -04:00
|
|
|
|
|
|
|
Separator(12),
|
|
|
|
|
|
|
|
Heart,
|
|
|
|
|
|
|
|
Separator(12),
|
|
|
|
|
2023-09-06 17:36:26 -04:00
|
|
|
SysTray,
|
|
|
|
|
|
|
|
Separator(12),
|
|
|
|
|
2023-09-05 19:57:34 -04:00
|
|
|
Workspaces,
|
2023-09-04 22:27:34 -04:00
|
|
|
|
|
|
|
],
|
|
|
|
}),
|
|
|
|
|
|
|
|
// Center
|
|
|
|
CurrentWindow,
|
|
|
|
|
|
|
|
// Right
|
|
|
|
Box({
|
|
|
|
halign: 'end',
|
2023-09-05 14:04:19 -04:00
|
|
|
children: [
|
2023-09-06 17:36:26 -04:00
|
|
|
BatteryLabel(),
|
|
|
|
|
|
|
|
Separator(12),
|
|
|
|
|
2023-09-05 19:22:54 -04:00
|
|
|
Clock,
|
|
|
|
|
|
|
|
Separator(12),
|
|
|
|
|
2023-09-05 15:10:25 -04:00
|
|
|
NotifButton,
|
|
|
|
|
|
|
|
Separator(12),
|
|
|
|
|
2023-09-05 14:04:19 -04:00
|
|
|
QsToggle,
|
|
|
|
],
|
2023-09-04 22:27:34 -04:00
|
|
|
}),
|
|
|
|
],
|
|
|
|
}),
|
|
|
|
});
|