forked from Aylur/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.ts
41 lines (40 loc) · 1.31 KB
/
main.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import "lib/session"
import "style/style"
import init from "lib/init"
import options from "options"
import Bar from "widget/bar/Bar"
import Launcher from "widget/launcher/Launcher"
import NotificationPopups from "widget/notifications/NotificationPopups"
import OSD from "widget/osd/OSD"
import Overview from "widget/overview/Overview"
import PowerMenu from "widget/powermenu/PowerMenu"
import ScreenCorners from "widget/bar/ScreenCorners"
import SettingsDialog from "widget/settings/SettingsDialog"
import Verification from "widget/powermenu/Verification"
import { forMonitors } from "lib/utils"
import { setupQuickSettings } from "widget/quicksettings/QuickSettings"
import { setupDateMenu } from "widget/datemenu/DateMenu"
App.config({
onConfigParsed: () => {
setupQuickSettings()
setupDateMenu()
init()
},
closeWindowDelay: {
"launcher": options.transition.value,
"overview": options.transition.value,
"quicksettings": options.transition.value,
"datemenu": options.transition.value,
},
windows: () => [
...forMonitors(Bar),
...forMonitors(NotificationPopups),
...forMonitors(ScreenCorners),
...forMonitors(OSD),
Launcher(),
Overview(),
PowerMenu(),
SettingsDialog(),
Verification(),
],
})