From 684dedeb1a527a74de31cb405168ad39ec802a51 Mon Sep 17 00:00:00 2001 From: Mora Unie Youer Date: Sun, 2 Mar 2025 14:16:48 +0300 Subject: feat: basic topbar features --- app.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'app.ts') 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)) + }, }) -- cgit v1.2.3-70-g09d2