2023-10-31 08:32:40 -04:00
|
|
|
import { Window, CenterBox, Box } from 'resource:///com/github/Aylur/ags/widget.js';
|
2023-09-04 22:27:34 -04:00
|
|
|
|
2023-10-17 13:47:02 -04:00
|
|
|
import Separator from '../misc/separator.js';
|
|
|
|
import CurrentWindow from './current-window.js';
|
|
|
|
import Workspaces from './workspaces.js';
|
|
|
|
import OskToggle from './osk-toggle.js';
|
|
|
|
import TabletToggle from './tablet-toggle.js';
|
|
|
|
import QsToggle from './quick-settings.js';
|
|
|
|
import NotifButton from './notif-button.js';
|
|
|
|
import Clock from './clock.js';
|
|
|
|
import SysTray from './systray.js';
|
|
|
|
import Battery from './battery.js';
|
|
|
|
import Brightness from './brightness.js';
|
|
|
|
import Audio from './audio.js';
|
|
|
|
import Revealer from './fullscreen.js';
|
|
|
|
//import KeyboardLayout from './keyboard-layout.js';
|
2023-09-04 22:27:34 -04:00
|
|
|
|
2023-10-02 12:06:35 -04:00
|
|
|
|
2023-10-22 13:39:13 -04:00
|
|
|
export const BgGradient = () => Window({
|
|
|
|
name: 'bg-gradient',
|
|
|
|
layer: 'background',
|
|
|
|
anchor: ['top', 'bottom', 'left', 'right'],
|
2023-11-06 18:37:23 -05:00
|
|
|
css: `
|
2023-11-01 14:31:55 -04:00
|
|
|
background-image: -gtk-gradient (linear,
|
|
|
|
left top, left bottom,
|
|
|
|
from(rgba(0, 0, 0, 0.5)),
|
|
|
|
to(rgba(0, 0, 0, 0)));
|
|
|
|
`,
|
2023-10-22 13:39:13 -04:00
|
|
|
});
|
|
|
|
|
2023-10-16 18:11:19 -04:00
|
|
|
export const Bar = () => Window({
|
2023-10-20 23:11:21 -04:00
|
|
|
name: 'bar',
|
|
|
|
layer: 'overlay',
|
|
|
|
anchor: ['top', 'left', 'right'],
|
|
|
|
exclusive: true,
|
|
|
|
child: Revealer({
|
|
|
|
child: CenterBox({
|
|
|
|
className: 'bar',
|
|
|
|
vertical: false,
|
2023-09-04 22:27:34 -04:00
|
|
|
|
2023-10-20 23:11:21 -04:00
|
|
|
startWidget: Box({
|
2023-11-06 18:37:23 -05:00
|
|
|
hpack: 'start',
|
2023-10-20 23:11:21 -04:00
|
|
|
children: [
|
2023-09-04 22:27:34 -04:00
|
|
|
|
2023-10-20 23:11:21 -04:00
|
|
|
OskToggle(),
|
2023-09-04 22:27:34 -04:00
|
|
|
|
2023-10-20 23:11:21 -04:00
|
|
|
Separator(12),
|
2023-09-06 17:36:26 -04:00
|
|
|
|
2023-10-20 23:11:21 -04:00
|
|
|
TabletToggle(),
|
2023-09-04 22:27:34 -04:00
|
|
|
|
2023-10-20 23:11:21 -04:00
|
|
|
Separator(12),
|
2023-09-08 15:23:52 -04:00
|
|
|
|
2023-10-20 23:11:21 -04:00
|
|
|
SysTray(),
|
2023-09-08 15:23:52 -04:00
|
|
|
|
2023-10-20 23:11:21 -04:00
|
|
|
Audio(),
|
2023-09-08 15:15:04 -04:00
|
|
|
|
2023-10-20 23:11:21 -04:00
|
|
|
Separator(12),
|
2023-09-04 22:27:34 -04:00
|
|
|
|
2023-10-20 23:11:21 -04:00
|
|
|
Brightness(),
|
2023-09-18 16:14:11 -04:00
|
|
|
|
2023-10-20 23:11:21 -04:00
|
|
|
Separator(12),
|
2023-09-18 16:14:11 -04:00
|
|
|
|
2023-10-20 23:11:21 -04:00
|
|
|
Workspaces(),
|
2023-09-18 16:14:11 -04:00
|
|
|
|
2023-10-20 23:11:21 -04:00
|
|
|
],
|
|
|
|
}),
|
2023-09-18 16:14:11 -04:00
|
|
|
|
2023-10-20 23:11:21 -04:00
|
|
|
centerWidget: Box({
|
|
|
|
children: [
|
2023-10-23 17:35:57 -04:00
|
|
|
Separator(12),
|
|
|
|
|
2023-10-20 23:11:21 -04:00
|
|
|
CurrentWindow(),
|
2023-10-23 17:35:57 -04:00
|
|
|
|
|
|
|
Separator(12),
|
2023-10-20 23:11:21 -04:00
|
|
|
],
|
|
|
|
}),
|
2023-09-18 16:14:11 -04:00
|
|
|
|
2023-10-20 23:11:21 -04:00
|
|
|
endWidget: Box({
|
2023-11-06 18:37:23 -05:00
|
|
|
hpack: 'end',
|
2023-10-20 23:11:21 -04:00
|
|
|
children: [
|
|
|
|
Battery(),
|
2023-09-04 22:27:34 -04:00
|
|
|
|
2023-10-20 23:11:21 -04:00
|
|
|
Separator(12),
|
2023-09-06 17:36:26 -04:00
|
|
|
|
2023-10-20 23:11:21 -04:00
|
|
|
//KeyboardLayout(),
|
2023-10-13 17:01:02 -04:00
|
|
|
|
2023-10-20 23:11:21 -04:00
|
|
|
//Separator(12),
|
2023-10-13 17:01:02 -04:00
|
|
|
|
2023-10-20 23:11:21 -04:00
|
|
|
Clock(),
|
2023-09-05 19:22:54 -04:00
|
|
|
|
2023-10-20 23:11:21 -04:00
|
|
|
Separator(12),
|
2023-09-05 19:22:54 -04:00
|
|
|
|
2023-10-20 23:11:21 -04:00
|
|
|
NotifButton(),
|
2023-09-05 15:10:25 -04:00
|
|
|
|
2023-10-20 23:11:21 -04:00
|
|
|
Separator(12),
|
2023-09-05 15:10:25 -04:00
|
|
|
|
2023-10-20 23:11:21 -04:00
|
|
|
QsToggle(),
|
|
|
|
],
|
|
|
|
}),
|
|
|
|
}),
|
2023-09-08 14:14:10 -04:00
|
|
|
}),
|
2023-09-04 22:27:34 -04:00
|
|
|
});
|