2024-03-21 21:45:07 -04:00
|
|
|
const { Box, CenterBox } = Widget;
|
2023-11-27 15:50:20 -05:00
|
|
|
|
2024-01-17 19:18:41 -05:00
|
|
|
import Separator from '../misc/separator.ts';
|
2024-06-19 12:54:01 -04:00
|
|
|
import { get_gdkmonitor_from_desc } from '../lib.ts';
|
2024-02-25 12:10:05 -05:00
|
|
|
|
2024-03-21 21:45:07 -04:00
|
|
|
import BarRevealer from './fullscreen.ts';
|
|
|
|
|
2024-01-17 19:18:41 -05:00
|
|
|
import Clock from './items/clock.ts';
|
2024-03-28 16:06:02 -04:00
|
|
|
import CurrentWindow from './items/current-window';
|
2024-02-25 12:10:05 -05:00
|
|
|
import NotifButton from './items/notif-button.ts';
|
|
|
|
import SysTray from './items/systray.ts';
|
2023-11-27 15:50:20 -05:00
|
|
|
|
2023-11-30 14:13:01 -05:00
|
|
|
const PADDING = 20;
|
|
|
|
|
2024-03-21 21:45:07 -04:00
|
|
|
export default () => BarRevealer({
|
2024-07-18 20:46:58 -04:00
|
|
|
gdkmonitor: get_gdkmonitor_from_desc('desc:Acer Technologies Acer K212HQL T3EAA0014201'),
|
2023-11-27 15:50:20 -05:00
|
|
|
exclusivity: 'exclusive',
|
|
|
|
anchor: ['bottom', 'left', 'right'],
|
2024-03-21 21:45:07 -04:00
|
|
|
bar: Box({
|
2023-11-30 14:13:01 -05:00
|
|
|
vertical: true,
|
|
|
|
children: [
|
|
|
|
CenterBox({
|
2024-01-13 16:07:33 -05:00
|
|
|
class_name: 'bar',
|
2024-03-21 21:45:07 -04:00
|
|
|
hexpand: true,
|
|
|
|
|
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({
|
2024-03-28 16:06:02 -04:00
|
|
|
children: [
|
|
|
|
CurrentWindow(),
|
2024-07-21 12:52:15 -04:00
|
|
|
|
|
|
|
Separator(PADDING / 2),
|
2024-03-28 16:06:02 -04:00
|
|
|
],
|
2023-11-30 14:13:01 -05:00
|
|
|
}),
|
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
|
|
|
}),
|
|
|
|
});
|