From 513bce9b840b811bb11790e8f9c9278b0f25019a Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Sun, 13 Oct 2024 18:01:39 +0200 Subject: [PATCH] home/programs/ags: enable bar only on focused monitor --- home/programs/ags/config.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/home/programs/ags/config.js b/home/programs/ags/config.js index bf989ff..9469424 100644 --- a/home/programs/ags/config.js +++ b/home/programs/ags/config.js @@ -134,11 +134,10 @@ function Right() { }); } -function Bar(monitor = 0) { +function Bar() { return Widget.Window({ - name: `bar-${monitor}`, // name has to be unique + name: "bar", // name has to be unique class_name: "bar", - monitor, anchor: ["top", "left", "right"], exclusivity: "exclusive", child: Widget.CenterBox({ @@ -151,7 +150,7 @@ function Bar(monitor = 0) { App.config({ style: "./style.css", - windows: [Bar(0), Bar(1), NotificationPopups()], + windows: [Bar(), NotificationPopups()], }); export {};