2023-10-02 12:06:35 -04:00
|
|
|
import { Hyprland, Widget } from '../../imports.js';
|
|
|
|
const { Window, Box } = Widget;
|
2023-09-19 23:24:46 -04:00
|
|
|
|
2023-09-22 01:34:36 -04:00
|
|
|
import { PopUp } from '../misc/popup.js';
|
2023-09-23 18:41:05 -04:00
|
|
|
import { WorkspaceRow, getWorkspaces, updateWorkspaces } from './workspaces.js';
|
|
|
|
import { updateClients } from './clients.js';
|
2023-09-19 23:24:46 -04:00
|
|
|
|
2023-10-02 12:06:35 -04:00
|
|
|
|
2023-09-23 18:41:05 -04:00
|
|
|
export default Window({
|
|
|
|
name: 'overview',
|
|
|
|
layer: 'overlay',
|
2023-09-25 12:30:32 -04:00
|
|
|
popup: true,
|
2023-09-19 23:24:46 -04:00
|
|
|
|
2023-09-23 18:41:05 -04:00
|
|
|
child: PopUp({
|
|
|
|
name: 'overview',
|
|
|
|
transition: 'crossfade',
|
2023-09-19 23:24:46 -04:00
|
|
|
|
2023-09-23 18:41:05 -04:00
|
|
|
child: Box({
|
|
|
|
className: 'overview',
|
2023-09-22 20:18:44 -04:00
|
|
|
vertical: true,
|
|
|
|
children: [
|
2023-09-23 18:41:05 -04:00
|
|
|
Box({
|
|
|
|
vertical: true,
|
|
|
|
children: [
|
|
|
|
WorkspaceRow('normal', 0),
|
|
|
|
],
|
|
|
|
}),
|
|
|
|
Box({
|
|
|
|
vertical: true,
|
|
|
|
children: [
|
|
|
|
WorkspaceRow('special', 0),
|
|
|
|
],
|
|
|
|
}),
|
2023-09-22 20:18:44 -04:00
|
|
|
],
|
2023-09-23 18:41:05 -04:00
|
|
|
connections: [
|
|
|
|
[Hyprland, box => {
|
|
|
|
box._getWorkspaces(box);
|
|
|
|
box._updateWorkspaces(box);
|
|
|
|
box._updateClients(box);
|
|
|
|
}],
|
2023-09-22 20:18:44 -04:00
|
|
|
],
|
2023-09-23 18:41:05 -04:00
|
|
|
properties: [
|
|
|
|
['workspaces'],
|
2023-09-22 20:18:44 -04:00
|
|
|
|
2023-09-23 18:41:05 -04:00
|
|
|
['getWorkspaces', getWorkspaces],
|
|
|
|
['updateWorkspaces', updateWorkspaces],
|
|
|
|
['updateClients', updateClients],
|
|
|
|
],
|
|
|
|
}),
|
2023-09-22 01:34:36 -04:00
|
|
|
|
2023-09-19 23:24:46 -04:00
|
|
|
}),
|
|
|
|
});
|