refactor(ags): move to App.config
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-03-05 16:03:28 -05:00
parent 297e5bd43a
commit 8bf5eccee0
2 changed files with 13 additions and 9 deletions

View file

@ -5,15 +5,16 @@ import Bar from './ts/bar/binto.ts';
import { NotifPopups, NotifCenter } from './ts/notifications/binto.ts'; import { NotifPopups, NotifCenter } from './ts/notifications/binto.ts';
import Powermenu from './ts/powermenu.ts'; import Powermenu from './ts/powermenu.ts';
App.addIcons(`${App.configDir}/icons`);
// TODO: add OSD, workspace indicator and current window indicator // TODO: add OSD, workspace indicator and current window indicator
export default { App.config({
icons: './icons',
onConfigParsed: () => { onConfigParsed: () => {
globalThis.Pointers = Pointers; globalThis.Pointers = Pointers;
}, },
windows: [ windows: () => [
AppLauncher(), AppLauncher(),
NotifCenter(), NotifCenter(),
Powermenu(), Powermenu(),
@ -21,4 +22,4 @@ export default {
Bar(), Bar(),
NotifPopups(), NotifPopups(),
], ],
}; });

View file

@ -10,12 +10,15 @@ import OSK from './ts/on-screen-keyboard/main.ts';
import Powermenu from './ts/powermenu.ts'; import Powermenu from './ts/powermenu.ts';
import QSettings from './ts/quick-settings/main.ts'; import QSettings from './ts/quick-settings/main.ts';
App.addIcons(`${App.configDir}/icons`);
Setup();
App.config({
icons: './icons',
export default { onConfigParsed: () => {
windows: [ Setup();
},
windows: () => [
...Corners(), ...Corners(),
AppLauncher(), AppLauncher(),
@ -30,4 +33,4 @@ export default {
BgFade(), BgFade(),
NotifPopups(), NotifPopups(),
], ],
}; });