refactor(ags): move to App.config
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
297e5bd43a
commit
8bf5eccee0
2 changed files with 13 additions and 9 deletions
|
@ -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(),
|
||||||
],
|
],
|
||||||
};
|
});
|
||||||
|
|
|
@ -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`);
|
|
||||||
|
App.config({
|
||||||
|
icons: './icons',
|
||||||
|
|
||||||
|
onConfigParsed: () => {
|
||||||
Setup();
|
Setup();
|
||||||
|
},
|
||||||
|
|
||||||
|
windows: () => [
|
||||||
export default {
|
|
||||||
windows: [
|
|
||||||
...Corners(),
|
...Corners(),
|
||||||
|
|
||||||
AppLauncher(),
|
AppLauncher(),
|
||||||
|
@ -30,4 +33,4 @@ export default {
|
||||||
BgFade(),
|
BgFade(),
|
||||||
NotifPopups(),
|
NotifPopups(),
|
||||||
],
|
],
|
||||||
};
|
});
|
||||||
|
|
Loading…
Reference in a new issue