summaryrefslogtreecommitdiff
path: root/app.ts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--app.ts12
1 files changed, 8 insertions, 4 deletions
diff --git a/app.ts b/app.ts
index 7e8cc7c..b6bf451 100644
--- a/app.ts
+++ b/app.ts
@@ -2,9 +2,13 @@ import { App } from "astal/gtk4"
import style from "./style.scss"
import Bar from "./widget/Bar"
+const windows = [
+ Bar,
+]
+
App.start({
- css: style,
- main() {
- App.get_monitors().map(Bar)
- },
+ css: style,
+ main() {
+ windows.forEach(window => App.get_monitors().map(window))
+ },
})